2017-09-20 12:30:53 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ThemeProvider } from 'styled-components';
|
2018-01-25 02:54:08 +02:00
|
|
|
import {
|
|
|
|
theme,
|
|
|
|
RootContainer,
|
|
|
|
PageContainer,
|
|
|
|
ViewContainer
|
|
|
|
} from 'joyent-ui-toolkit';
|
2017-09-20 12:30:53 +03:00
|
|
|
|
2018-01-25 02:54:08 +02:00
|
|
|
export default ({ children, ss }) => (
|
|
|
|
<ThemeProvider theme={theme}>
|
|
|
|
{ss ? (
|
|
|
|
<RootContainer>
|
|
|
|
<PageContainer>
|
|
|
|
<ViewContainer>{children}</ViewContainer>
|
|
|
|
</PageContainer>
|
|
|
|
</RootContainer>
|
|
|
|
) : (
|
|
|
|
children
|
|
|
|
)}
|
|
|
|
</ThemeProvider>
|
2017-09-20 12:30:53 +03:00
|
|
|
);
|