Import roles from auth context in Layout

cgen-f68fb9181f46415bad588c963da96446
This commit is contained in:
Builder.io 2025-09-27 21:10:11 +00:00
parent 9c982aec7c
commit f3581dc8d0

View file

@ -19,7 +19,7 @@ interface LayoutProps {
export default function Layout({ children }: LayoutProps) {
const location = useLocation();
const { user, profile, signOut, loading } = useAuth();
const { user, profile, roles, signOut, loading } = useAuth();
const navigation = [
{ name: "Home", href: "/" },