"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 SEBASTIAN_KEY = "edueasy_child_sebastian" const activities = [ { id: "matematicas", label: "Matemáticas", icon: "➕", description: "Sumas, restas, multiplicación, división, fracciones" }, { id: "lectura", label: "Lectura", icon: "📖", description: "Textos informativos y comprensión" }, { id: "historia", label: "Historia argentina", icon: "🇦🇷", description: "Personajes, fechas y eventos" }, { id: "geografia", label: "Geografía", icon: "🗺️", description: "Provincias, ríos y regiones" }, { id: "banderas", label: "Banderas", icon: "🚩", description: "Provincias y símbolos" }, { id: "logros", label: "Mis logros", icon: "⭐", color: "bg-warning" }, { id: "pairing", label: "iPad nuevo", icon: "🔗", color: "bg-secondary" }, ] export default function SebastianHome() { const router = useRouter() const [audioReady, setAudioReady] = useState(false) const [paired, setPaired] = useState(false) useEffect(() => { setPaired(!!localStorage.getItem(SEBASTIAN_KEY)) }, []) const handleActivity = (id: string) => { if (id === "logros") { router.push("/child/logros?profile=sebastian") } else if (id === "pairing") { router.push("/child/pairing?profile=sebastian") } else { router.push(`/sebastian/${id}`) } } if (!audioReady) { return setAudioReady(true)} /> } return (
{!paired ? (

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

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