const Column = require('../column'); const React = require('react'); const Row = require('../row'); const Styled = require('styled-components'); const transferProps = require('./transfer-props'); const View = require('./view'); const { default: styled } = Styled; const xs = (props) => props.collapsed ? 12 : 6; const display = (props) => !props.collapsed ? 'block' : 'flex'; const InnerRow = styled(Row)` display: ${display}; height: 100%; `; module.exports = transferProps([ 'collapsed', 'headed', 'fromHeader' ], (props) => { const meta = ( {props.children} ); return !props.fromHeader ? meta : ( {meta} ); });