diff --git a/apps/web/lib/layout/main-layout.tsx b/apps/web/lib/layout/main-layout.tsx index ea9dd33c9..17cfcbce3 100644 --- a/apps/web/lib/layout/main-layout.tsx +++ b/apps/web/lib/layout/main-layout.tsx @@ -3,7 +3,7 @@ import { cn } from '@/lib/utils'; import { Toaster, ToastMessageManager } from '@components/ui/toaster'; import { Container, Divider, Meta } from 'lib/components'; -import { PropsWithChildren } from 'react'; +import { PropsWithChildren, useRef, ReactNode } from 'react'; import { Footer, Navbar } from '.'; import { useAtomValue } from 'jotai'; import { fullWidthState } from '@app/stores/fullWidth'; @@ -19,6 +19,8 @@ type Props = PropsWithChildren<{ className?: string; childrenClassName?: string; footerClassName?: string; + mainHeaderSlot?: JSX.Element | ReactNode; + mainHeaderSlotClassName?: string; }>; export function MainLayout({ @@ -29,9 +31,12 @@ export function MainLayout({ notFound, className, childrenClassName, + mainHeaderSlot, + mainHeaderSlotClassName = '', footerClassName = '' }: Props) { const fullWidth = useAtomValue(fullWidthState); + const headerRef = useRef(null); return (