joyent-portal/packages/ui-toolkit/src/styleguide/wrapper.js

21 lines
479 B
JavaScript
Raw Normal View History

import React from 'react';
import { ThemeProvider } from 'styled-components';
2017-10-19 16:36:18 +03:00
import theme from '../theme';
import Base from '../base';
2017-10-19 16:36:18 +03:00
import { RootContainer } from '../layout';
import 'codemirror/mode/jsx/jsx';
const StyledBase = Base.extend`
2017-09-27 17:44:57 +03:00
/* trick prettier */
background-color: transparent;
`;
2017-10-19 16:36:18 +03:00
export default ({ children }) => (
<ThemeProvider theme={theme}>
<StyledBase>
<RootContainer>{children}</RootContainer>
</StyledBase>
</ThemeProvider>
);