joyent-portal/packages/resource-widgets/src/mocks/theme.js
2018-05-08 15:32:10 +01:00

24 lines
459 B
JavaScript

import React from 'react';
import { ThemeProvider } from 'styled-components';
import {
theme,
RootContainer,
PageContainer,
ViewContainer
} from 'joyent-ui-toolkit';
export default ({ children, ss }) => (
<ThemeProvider theme={theme}>
{ss ? (
<RootContainer>
<PageContainer>
<ViewContainer>{children}</ViewContainer>
</PageContainer>
</RootContainer>
) : (
children
)}
</ThemeProvider>
);