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