"use client";
import { AuthGuard, LoginGuard } from "@/contexts";
import { usePathname } from "next/navigation";
import type { PropsWithChildren } from "react";
import { Header } from "./header";
import Notification from "./notification";
import { Sidebar } from "./sidebar";
export function ConditionalLayout({ children }: PropsWithChildren) {
const pathname = usePathname();
const isAuthPage = pathname.startsWith("/auth");
return (
<>
{isAuthPage ? (
{children}
) : (
)}
>
);
}