import type { PropsWithChildren } from 'react'; import { useAuth } from '../hooks/useAuth'; export default function ProtectedRoute({ children }: PropsWithChildren) { const { isLoading } = useAuth(); if (isLoading) { return (