accounts/dashboard/cms/extensions/appShell.tsx

26 lines
564 B
TypeScript

import type { ReactNode } from 'react'
import Footer from '@components/Footer'
import Navbar from '@components/Navbar'
import { AskAIButton } from '@components/AskAIButton'
import type { CmsExtension } from '../types'
function AppShellLayout({ children }: { children: ReactNode }) {
return (
<>
<Navbar />
<div className="pt-[var(--app-shell-nav-offset)]">
{children}
<Footer />
</div>
<AskAIButton />
</>
)
}
export const appShellExtension: CmsExtension = {
name: 'app-shell',
Layout: AppShellLayout,
}