Ulf Gebhardt 93eabedd16
docs: group by category (#124)
Groups the docs by categories and assigns all exported Components a
category (except types).
2025-02-18 11:11:06 +01:00

33 lines
728 B
TypeScript

import { ContextWrapper } from './ContextWrapper'
import NavBar from './NavBar'
import { SetAppState } from './SetAppState'
import type { AssetsApi } from '#types/AssetsApi'
/**
* @category AppShell
*/
export function AppShell({
appName,
children,
assetsApi,
userType,
}: {
appName: string
children: React.ReactNode
assetsApi: AssetsApi
userType: string
}) {
return (
<ContextWrapper>
<div className='tw-flex tw-flex-col tw-h-full'>
<SetAppState assetsApi={assetsApi} userType={userType} />
<NavBar userType={userType} appName={appName}></NavBar>
<div id='app-content' className='tw-flex-grow'>
{children}
</div>
</div>
</ContextWrapper>
)
}