import { AnimatePresence, motion } from 'framer-motion'; import Seo from '@/components/framework/Seo'; import { MotionPageProps } from '@/interfaces/framwork'; import clsxm from '@/lib/clsxm'; import { getBody, getBodyExcept } from '@/lib/getBody'; import { Footer, Navbar, Sidebar, SkipNavContent } from '.'; export const Page = ({ header = true, sidebar = true, children, className, meta, motionProps, hasMain, ...props }: { header?: boolean; sidebar?: boolean; children?: any; className?: string; meta?: any; motionProps?: MotionPageProps; hasMain?: boolean; [x: string]: any; }) => { return ( <> {hasMain && }
{header && ( )}
{getBodyExcept(children, 'sidenav')} {getBody(children, 'sidenav')}
); };