23 lines
495 B
JavaScript
23 lines
495 B
JavaScript
import React from 'react';
|
|
import { ThemeProvider } from 'styled-components';
|
|
|
|
import theme from '../theme';
|
|
import Base from '../base';
|
|
import { RootContainer } from '../layout';
|
|
import 'codemirror/mode/jsx/jsx';
|
|
|
|
const StyledBase = Base.extend`
|
|
/* trick prettier */
|
|
background-color: transparent;
|
|
`;
|
|
|
|
export default ({ children }) => (
|
|
<ThemeProvider theme={theme}>
|
|
<StyledBase>
|
|
<RootContainer>
|
|
{children}
|
|
</RootContainer>
|
|
</StyledBase>
|
|
</ThemeProvider>
|
|
);
|