import { ReactNode } from 'react'; import { Title } from '@gitroom/frontend/components/layout/title'; import { headers } from 'next/headers'; import { ContextWrapper } from '@gitroom/frontend/components/layout/user.context'; import { TopMenu } from '@gitroom/frontend/components/layout/top.menu'; import { MantineWrapper } from '@gitroom/react/helpers/mantine.wrapper'; import { ToolTip } from '@gitroom/frontend/components/layout/top.tip'; import { ShowMediaBoxModal } from '@gitroom/frontend/components/media/media.component'; import Image from 'next/image'; import dynamic from 'next/dynamic'; import { Toaster } from '@gitroom/react/toaster/toaster'; import { ShowPostSelector } from '@gitroom/frontend/components/post-url-selector/post.url.selector'; const NotificationComponent = dynamic( () => import('@gitroom/frontend/components/notifications/notification.component'), { loading: () => <>, ssr: false, } ); export const LayoutSettings = ({ children }: { children: ReactNode }) => { const user = JSON.parse(headers().get('user')!); return (
Logo
Gitroom
<div className="flex flex-1 flex-col">{children}</div> </div> </div> </div> </MantineWrapper> </ContextWrapper> ); };