"use client" import { useRouter } from "next/navigation" import { GatoMascota } from "./gato-mascota" const CHILD_ID_KEY = "edueasy_child_id" interface Props { onRetry?: () => void } export default function NoChildError({ onRetry }: Props) { const router = useRouter() const hasChildId = typeof window !== "undefined" && localStorage.getItem(CHILD_ID_KEY) return (
{hasChildId ? (

No pude conectar con el servidor. Revisá la conexión.

) : ( <>

Pedile a mamá que te empareje desde su celular.

Mamá va a Dashboard → Emparejar nuevo iPad

)}
{hasChildId && onRetry && ( )}
) }