import styled from 'styled-components';
import { Subscriber } from 'react-broadcast';
import { Baseline } from '../../shared/composers';
import { is } from '../../shared/functions';
import Column from '../column';
import Row from '../row';
import View from './view';
import React from 'react';
const InnerRow = styled(Row)`
display: block;
height: 100%;
${is('collapsed')`
display: flex;
`};
`;
const Meta = ({
children,
...props
}) => {
const render = ({
collapsed = false,
fromHeader = false,
headed = false
}) => {
const meta = (
{children}
);
return !fromHeader ? meta : (
{meta}
);
};
return (
{render}
);
};
Meta.propTypes = {
children: React.PropTypes.node,
collapsed: React.PropTypes.bool,
fromHeader: React.PropTypes.bool,
headed: React.PropTypes.bool
};
export default Baseline(
Meta
);