mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
* adjustments to allow merge of map with landingpage * 3.0.79 * 3.0.80 * version * removed unused imports
21 lines
514 B
TypeScript
21 lines
514 B
TypeScript
import { useAppState } from './hooks/useAppState'
|
|
|
|
interface ContentProps {
|
|
children?: React.ReactNode
|
|
}
|
|
|
|
/**
|
|
* @category AppShell
|
|
*/
|
|
export function Content({ children }: ContentProps) {
|
|
const appState = useAppState()
|
|
|
|
return (
|
|
<div
|
|
className={`${appState.sideBarOpen && !appState.sideBarSlim ? 'tw-ml-48' : appState.sideBarOpen && appState.sideBarSlim ? 'tw-ml-14' : ''} tw-w-full tw-h-full tw-bg-base-100 tw-relative tw-transition-all tw-duration-300`}
|
|
>
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|