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