"use client" import { useEffect, useState } from "react" import { useRouter } from "next/navigation" import { GatoMascota } from "@/components/child/gato-mascota" import AudioUnlock from "@/components/child/audio-unlock" const FRANCESCA_KEY = "edueasy_child_francesca" const activities = [ { id: "matematicas", label: "Matemáticas", icon: "🔢", description: "Sumas, restas, tablas y divisiones" }, { id: "lecturas", label: "Lecturas cortas", icon: "📖", description: "Leé textos sobre distintos temas" }, { id: "ortografia", label: "Ortografía", icon: "✏️", description: "Mayúsculas y reglas" }, { id: "logros", label: "Mis logros", icon: "⭐", color: "bg-warning" }, { id: "pairing", label: "iPad nuevo", icon: "🔗", color: "bg-secondary" }, ] export default function FrancescaHome() { const router = useRouter() const [audioReady, setAudioReady] = useState(false) const [paired, setPaired] = useState(false) useEffect(() => { setPaired(!!localStorage.getItem(FRANCESCA_KEY)) }, []) const handleActivity = (id: string) => { if (id === "logros") { router.push("/child/logros?profile=francesca") } else if (id === "pairing") { router.push("/child/pairing?profile=francesca") } else { router.push(`/francesca/${id}`) } } if (!audioReady) { return setAudioReady(true)} /> } return (
{!paired ? (

Todavía no estás conectada. Pedile a mamá que te empareje.

) : (
{activities.map((a) => ( ))}
)}
) }