"use client"; import { ReactNode } from "react"; import { useSupabase } from "@/lib/context/SupabaseProvider"; import { redirectToLogin } from "@/lib/router/redirectToLogin"; interface LayoutProps { children?: ReactNode; } const Layout = ({ children }: LayoutProps): JSX.Element => { const { session } = useSupabase(); if (session === null) { redirectToLogin(); } return (