website/app/layout.tsx
2026-11-17 18:44:03 -08:00

50 lines
1.1 KiB
TypeScript

'use client'
import { Background, Header, Sidebar } from 'chora/components'
import { MenuContextProvider, ThemeContextProvider } from 'chora/contexts'
import './globals.css'
const Layout = ({ children }: any) => (
<html lang="en">
<body>
<ThemeContextProvider>
<MenuContextProvider>
<Background />
<Header
title={{
link: '/',
}}
items={[
{
link: '/artifacts',
title: 'artifacts',
target: '',
},
]}
showMenuButton={true}
showMobileTitle={true}
/>
<Sidebar
items={[
{
link: '.',
target: '',
title: 'home',
},
{
link: 'artifacts',
target: '',
title: 'artifacts',
},
]}
mobileOnly={true}
/>
<main>{children}</main>
</MenuContextProvider>
</ThemeContextProvider>
</body>
</html>
)
export default Layout