mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2026-01-15 12:15:02 +00:00
19 lines
486 B
TypeScript
19 lines
486 B
TypeScript
import { SessionConsumer } from 'contexts/session';
|
|
import type { FC } from 'react';
|
|
import { ThemeProvider } from 'styled-components';
|
|
import GlobalStyle from 'styles/GlobalStyle';
|
|
import themes from 'styles/themes.json';
|
|
|
|
const StyledApp: FC = ({ children }) => (
|
|
<>
|
|
<GlobalStyle />
|
|
<SessionConsumer>
|
|
{({ theme = themes.default }) => (
|
|
<ThemeProvider theme={theme}>{children}</ThemeProvider>
|
|
)}
|
|
</SessionConsumer>
|
|
</>
|
|
);
|
|
|
|
export default StyledApp;
|