import { Navigate, Outlet } from 'react-router-dom' import { authClient } from '../lib/auth-client.ts' export function ProtectedRoute() { const { data: session, isPending } = authClient.useSession() if (isPending) { return (