mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Groups the docs by categories and assigns all exported Components a category (except types).
33 lines
728 B
TypeScript
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>
|
|
)
|
|
}
|