Files
AFFiNE-Mirror/apps/ligo-virgo/src/pages/AppContainer.tsx
T
2022-08-17 17:56:59 +08:00

41 lines
1.0 KiB
TypeScript

import { css, Global } from '@emotion/react';
import { LayoutHeader, SettingsSidebar } from '@toeverything/components/layout';
import { styled } from '@toeverything/components/ui';
import { Outlet } from 'react-router-dom';
export function LigoVirgoRootContainer() {
return (
<>
<Global
styles={css`
#root {
display: flex;
flex-direction: row;
height: 100vh;
}
`}
/>
<StyledContentContainer>
<LayoutHeader />
<StyledMainContainer>
<Outlet />
</StyledMainContainer>
</StyledContentContainer>
<SettingsSidebar />
</>
);
}
const StyledMainContainer = styled('div')({
flex: 'auto',
display: 'flex',
overflowY: 'hidden',
});
const StyledContentContainer = styled('div')({
flex: 'auto',
display: 'flex',
flexDirection: 'column',
overflow: 'hidden',
});