UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

23 lines (20 loc) 942 B
import { __rest } from '../../../../../../node_modules/tslib/tslib.es6.js'; import React__default from 'react'; import styled, { withTheme } from 'styled-components'; import { Grid } from '../../../../02-atoms/06-layout/04-grid/index.js'; import { Cell } from '../../../../02-atoms/06-layout/04-grid/Cell.js'; const ResponsiveGrid = styled(Grid) ` ${props => props.theme.mediaQueries.smallRevert} { display: block; } `; /** * Layout with one sidebar. */ const OneSidebarLayout = withTheme((_a) => { var { content, sidebar, theme } = _a, props = __rest(_a, ["content", "sidebar", "theme"]); return (React__default.createElement(ResponsiveGrid, { columns: `${theme.layout.sidebar.width} auto`, areas: ['sidebar content content'] }, React__default.createElement(Cell, { area: "sidebar" }, sidebar), React__default.createElement(Cell, { area: "content" }, content))); }); export { OneSidebarLayout };