| 1234567891011121314151617181920212223242526272829303132 |
- /* @flow */
-
- import AbstractContainer from '../AbstractContainer';
-
- /**
- * Represents a container of React/Web {@link Component} children with a style.
- *
- * @extends AbstractContainer
- */
- export default class Container extends AbstractContainer {
- /**
- * {@code Container} component's property types.
- *
- * @static
- */
- static propTypes = AbstractContainer.propTypes;
-
- /**
- * Implements React's {@link Component#render()}.
- *
- * @inheritdoc
- * @returns {ReactElement}
- */
- render() {
- const { visible } = this.props;
-
- return (
- typeof visible === 'undefined' || visible
- ? super._render('div')
- : null);
- }
- }
|