import type { ReactNode } from "react"; import { memo } from "react"; import MetaTags from "@/components/Common/MetaTags"; import SignupButton from "@/components/Shared/Navbar/SignupButton"; import cn from "@/helpers/cn"; import { useAccountStore } from "@/store/persisted/useAccountStore"; import LoginButton from "./LoginButton"; import Search from "./Search"; import Sidebar from "./Sidebar"; interface AuthButtonsProps { className?: string; } const AuthButtons = ({ className }: AuthButtonsProps) => { const { currentAccount } = useAccountStore(); if (currentAccount) { return null; } return (
); }; interface PageLayoutProps { title?: string; description?: string; children: ReactNode; sidebar?: ReactNode; hideSearch?: boolean; zeroTopMargin?: boolean; } const PageLayout = ({ title, children, description, sidebar = , hideSearch = false, zeroTopMargin = false }: PageLayoutProps) => { return ( <>
{children}
); }; export default memo(PageLayout);