mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-02 15:09:29 +00:00
e04b8d081f
the app crashed on screen changes, I don't quite get why right now… but at least this goes around the issue…
28 lines
570 B
TypeScript
28 lines
570 B
TypeScript
import type { ReactNode } from 'react'
|
|
import { css } from '@/styled-system/css'
|
|
import { Header } from './Header'
|
|
|
|
export const Screen = ({ children }: { children?: ReactNode }) => {
|
|
return (
|
|
<div
|
|
className={css({
|
|
height: '100%',
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
backgroundColor: 'default.bg',
|
|
color: 'default.text',
|
|
})}
|
|
>
|
|
<Header />
|
|
<main
|
|
className={css({
|
|
flexGrow: 1,
|
|
overflow: 'auto',
|
|
})}
|
|
>
|
|
{children}
|
|
</main>
|
|
</div>
|
|
)
|
|
}
|