Anton Tranelis 7fdc41d679
refactor(source): reperation to merge map and landingpage (#209)
* adjustments to allow merge of map with landingpage

* 3.0.79

* 3.0.80

* version

* removed unused imports
2025-04-15 20:27:21 +00:00

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>
)
}