import { Link, NavLink, useNavigate } from "react-router-dom"; import { useAuth } from "../auth"; import type { ReactNode } from "react"; function navClass({ isActive }: { isActive: boolean }) { return `px-3 py-2 rounded-md text-sm font-medium ${ isActive ? "bg-brand-50 text-brand-700" : "text-gray-600 hover:bg-gray-100" }`; } export default function Layout({ children }: { children: ReactNode }) { const { user, logout } = useAuth(); const navigate = useNavigate(); return (
PawTrace
{children}
); }