mirror of
https://github.com/supabase/supabase.git
synced 2026-07-07 00:34:33 +08:00
18 lines
392 B
TypeScript
18 lines
392 B
TypeScript
import { PropsWithChildren } from 'react'
|
|
|
|
import { useFlag } from 'hooks'
|
|
import AppHeader from './AppHeader'
|
|
|
|
const AppLayout = ({ children }: PropsWithChildren<{}>) => {
|
|
const navLayoutV2 = useFlag('navigationLayoutV2')
|
|
|
|
return (
|
|
<div className="h-screen min-h-[0px] basis-0 flex-1">
|
|
{navLayoutV2 && <AppHeader />}
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default AppLayout
|