import { Subscriber } from 'react-broadcast';
import Baseline from '../baseline';
import typography from '../typography';
import is, { isNot } from 'styled-is';
import remcalc from 'remcalc';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import Title from './title';
import React from 'react';
const StyledTitle = Title.extend`
${typography.fontFamily};
${typography.normal};
flex-grow: 2;
${isNot('collapsed')`
padding-bottom: ${remcalc(12)};
`};
`;
const InnerDescription = styled.div`
justify-content: flex-start;
${is('collapsed')`
justify-content: flex-end;
margin-left: auto;
`};
`;
const Description = ({ children, ...rest }) => {
const render = ({ collapsed = false }) =>
{children}
;
return (
{render}
);
};
Description.propTypes = {
children: PropTypes.node,
/**
* @ignore
*/
collapsed: PropTypes.bool
};
export default Baseline(Description);