import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';

const Expandable = ({
  open,
  children,
  className
}) => {
  const classes = cx(className, 'expandable', {
    'expandable--open': open
  });
  return /*#__PURE__*/React.createElement("div", {
    className: classes
  }, children);
};

Expandable.propTypes = {
  open: PropTypes.bool,
  className: PropTypes.string,
  children: PropTypes.any
};
Expandable.defaultProps = {
  open: false,
  className: null,
  children: null
};
export default Expandable;