import React from 'react' import classnames from 'classnames' import PropTypes from 'prop-types' const PopinFixedContent = props => { return props.children.length === 2 ? (
{props.children[0]}
{props.children[1]}
) : (
{ props.children }
) } export default PopinFixedContent PopinFixedContent.propTypes = { customClass: PropTypes.string, children: PropTypes.arrayOf((children, key, componentName /* , location, propFullName */) => children.length !== 2 && new Error(`PropType Error: ${componentName} must have 2 children.`) ).isRequired }