¿Qué tipo de parámetro es este? { children }: { children: JSX.Element }
Esta es la declaración de la función.
function RequireAuth({ children }: { children: JSX.Element }) { let auth = useAuth(); let location = useLocation(); if (!auth.user) { return <Navigate to="/login" state={{ from: location }} replace />; } return children; }Sé que la función toma el componente JSX, pero aún no sé qué sintaxis usa el parámetro.