import type { Brief } from "@/lib/types"; const FIELDS: { key: keyof Brief; label: string; placeholder: string }[] = [ { key: "brand", label: "Brand", placeholder: "FitFuel" }, { key: "product", label: "Product", placeholder: "High-protein meal replacement shake" }, { key: "audience", label: "Audience", placeholder: "Busy professionals aged 25-40" }, { key: "tone", label: "Tone", placeholder: "Energetic and no-nonsense" }, { key: "goal", label: "Goal", placeholder: "Drive trial purchases" }, ]; export function BriefForm({ brief, onChange, onSubmit, loading, statusText, canSubmit, }: { brief: Brief; onChange: (key: keyof Brief, value: string) => void; onSubmit: () => void; loading: boolean; statusText: string; canSubmit: boolean; }) { return (
{ e.preventDefault(); onSubmit(); }} className="border border-ink-700 bg-ink-900" >

Brand Brief

{FIELDS.map((f) => (
onChange(f.key, e.target.value)} disabled={loading} className="w-full border border-ink-700 bg-ink-950 px-3 py-2 text-sm text-zinc-100 outline-none transition-colors placeholder:text-zinc-600 focus:border-zinc-500 disabled:opacity-60" />
))}

{loading ? statusText : canSubmit ? "Ready" : "Fill in the brief to generate"}

); }