"use client" import { useState } from "react" import { motion, AnimatePresence } from "motion/react" import { Button } from "@ui/components/button" import { useRouter } from "next/navigation" import { cn } from "@lib/utils" import { dmSansClassName } from "@/lib/fonts" import { analytics } from "@/lib/analytics" const relatableOptions = [ { emoji: "😔", text: "I always forget what I save in my twitter bookmarks", }, { emoji: "😭", text: "Going through e-books manually is so tedious", }, { emoji: "🥲", text: "I always have to feed every AI app with my data", }, { emoji: "😵‍💫", text: "Referring meeting notes makes my AI chat hallucinate", }, { emoji: "🫤", text: "I save nothing on my browser, it's just useless", }, ] export function RelatableQuestion() { const router = useRouter() const [selectedOptions, setSelectedOptions] = useState([]) const handleContinueOrSkip = () => { const selectedTexts = selectedOptions.map( (idx) => relatableOptions[idx]?.text || "", ) analytics.onboardingRelatableSelected({ options: selectedTexts }) router.push("/new/onboarding/setup?step=integrations") } return ( Which of these sound most relatable?
{relatableOptions.map((option, index) => (
))}
) }