// Entrepreneur path β€” 4 steps. Each step is a focused question. const ENTREP_TOTAL = 4; const ENTREP_STEP_NAMES = ["Idea", "Audience", "Goal", "Look"]; const IDEA_PROMPTS = [ "A community for indie game devs to swap playtesters, with weekly demo nights", "An AI tool that turns my handwritten recipe notes into a clean cookbook for my family", "A waitlist + scheduler for my pottery studio β€” small classes, six people max", "A subscription box service for cold-brew enthusiasts, with monthly tasting cards", "A simple tool that turns my Strava data into framed art prints I can sell", ]; function EntrepIdea({ value, onChange }) { const [phIdx, setPhIdx] = React.useState(0); const [phChars, setPhChars] = React.useState(0); const [deleting, setDeleting] = React.useState(false); React.useEffect(() => { if (value.length > 0) return undefined; const full = IDEA_PROMPTS[phIdx]; const speed = deleting ? 18 : 38; const t = setTimeout(() => { if (!deleting) { if (phChars < full.length) setPhChars(phChars + 1); else setTimeout(() => setDeleting(true), 1500); } else { if (phChars > 0) setPhChars(phChars - 1); else { setDeleting(false); setPhIdx((phIdx + 1) % IDEA_PROMPTS.length); } } }, speed); return () => clearTimeout(t); }, [value, phIdx, phChars, deleting]); return ( <>