"use client"; import { useEffect, useState } from "react"; import { RefreshCcw } from "lucide-react"; import { StoryBackdrop } from "@/components/marketing/StoryBackdrop"; import { randomStory, type GoalStory } from "@/lib/stories"; /** * Mobile onboarding screen with a rotating goal-story video background. * A different human moment greets the user every time the app opens. */ export function StoryOnboarding() { const [story, setStory] = useState(null); useEffect(() => setStory(randomStory()), []); return (
{story ? ( ) : (
)}
{story && ( <>

{story.emoji} {story.tag}

{story.headline}

{story.subline}

)}

Your goal is next. Aartha gets you there.

); }