import { Subscriber } from 'joy-react-broadcast'; import typography from '../typography'; import Baseline from '../baseline'; import { Col } from 'react-styled-flexboxgrid'; import is, { isNot } from 'styled-is'; import remcalc from 'remcalc'; import PropTypes from 'prop-types'; import React from 'react'; const StyledCol = Col.extend` ${typography.normal}; display: block; min-width: auto; max-width: ${remcalc(480)}; margin-left: auto; ${is('collapsed')` display: none; `}; ${isNot('active')` color: ${props => props.theme.grey}; `}; `; const Outlet = ({ children, ...rest }) => { const render = ({ active = true, collapsed = false }) => ( {children} ); return {render}; }; Outlet.propTypes = { children: PropTypes.node, collapsed: PropTypes.bool }; export default Baseline(Outlet);