import { useState, useEffect } from 'react'; import { Label } from '@/components/ui/label'; import { Input } from '@/components/ui/input'; interface ShakespeareDeployFormProps { host?: string; projectId: string; onSubdomainChange: (subdomain: string) => void; } export function ShakespeareDeployForm({ host = 'shakespeare.wtf', projectId, onSubdomainChange, }: ShakespeareDeployFormProps) { const [subdomain, setSubdomain] = useState(projectId); useEffect(() => { onSubdomainChange(subdomain); }, [subdomain, onSubdomainChange]); const fullDomain = subdomain ? `${subdomain}.${host}` : `${projectId}.${host}`; return (
Will deploy to: {fullDomain}