"use client"; import * as React from "react"; import { Input } from "@/components/ui/input"; interface CustomDomainInputProps { domainSuffix: string; placeholder?: string; onChange?: (value: string) => void; } export default function CustomDomainInput( { domainSuffix, placeholder = "Enter subdomain", onChange, }: CustomDomainInputProps = { domainSuffix: ".example.com", } ) { const [value, setValue] = React.useState(""); const handleChange = (event: React.ChangeEvent) => { const newValue = event.target.value; setValue(newValue); if (onChange) { onChange(newValue); } }; return (
{domainSuffix}
); }