"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 y multiplicaciones" }, { id: "lecturas", label: "Lecturas cortas", icon: "📖", description: "Leé textos chiquitos" }, { 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)) }, []) if (!audioReady) { return setAudioReady(true)} /> } return (
{!paired ? (

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

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