'use client'; import { Radio } from 'lucide-react'; import { useState, type FormEvent } from 'react'; type Props = { busy: boolean; error?: string | null; onConnect: (liveId: string) => void; }; export function ConnectForm({ busy, error, onConnect }: Props) { const [value, setValue] = useState(''); const submit = (event: FormEvent) => { event.preventDefault(); if (value.trim()) onConnect(value.trim()); }; return (