"use client" import { Sidebar } from "@/components/custom/sidebar/sidebar" import { CommandPalette } from "@/components/custom/command-palette/command-palette" import { useAccountOrGuest } from "@/lib/providers/jazz-provider" import { usePathname } from "next/navigation" import PublicHomeRoute from "@/components/routes/public/PublicHomeRoute" export default function PageLayout({ children }: { children: React.ReactNode }) { const { me } = useAccountOrGuest() const pathname = usePathname() if (me._type === "Anonymous" && pathname === "/") { return } return (
{me._type !== "Anonymous" && }
{children}
) }