joyent-portal/ui/src/components/list/outlet.js

26 lines
398 B
JavaScript
Raw Normal View History

2017-01-09 14:13:12 +02:00
const Column = require('../column');
const React = require('react');
const Outlet = (props) => {
if (props.collapsed) {
return null;
}
return (
<Column
name='list-item-outlet'
xs={6}
{...props}
>
{props.children}
</Column>
);
};
Outlet.propTypes = {
children: React.PropTypes.node,
collapsed: React.PropTypes.bool
};
module.exports = Outlet;