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)

22 lines (19 loc) 851 B
import React__default from 'react'; import { SideViewWrapper, SideViewSidebar, SideTitle, SideViewMain } from './styles.js'; /** * @file * * @fileoverview Creates a split view layout (list on the left detail on the right). */ /** * Displays a split view layout where a list of items is * shown on the left and the detail is shown on the right. */ const SplitViewLayout = ({ sidebar, title = null, children, height = 'auto', inDetail = false }) => { return (React__default.createElement(SideViewWrapper, { height: height }, React__default.createElement(SideViewSidebar, { inDetail: inDetail }, title ? React__default.createElement(SideTitle, null, title) : null, sidebar), React__default.createElement(SideViewMain, { inDetail: inDetail }, children))); }; export { SplitViewLayout };