1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-07-12 02:15:55 +02:00
Lexiconga/src/components/structure/RightColumn.jsx

17 lines
463 B
JavaScript

import Inferno from 'inferno';
import PropTypes from 'prop-types';
export const RightColumn = (props) => {
PropTypes.checkPropTypes({
formIsDisplayed: PropTypes.bool.isRequired,
children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
}, props, 'prop', 'RightColumn');
const { formIsDisplayed } = props;
return (
<div className={ `column ${ formIsDisplayed ? 'is-two-thirds' : '' }` }>
{ props.children }
</div>
);
}