function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

import React from 'react';
import { Modal, ModalOverlay } from '../../composites';
import { omitUndefined } from '../../../theme/tools/utils';

const Actionsheet = ({
  children,
  ...props
}) => {
  const {
    isOpen,
    disableOverlay,
    onClose,
    ...newProps
  } = omitUndefined(props);
  return /*#__PURE__*/React.createElement(Modal, _extends({
    isOpen: isOpen,
    onClose: onClose,
    justifyContent: "flex-end"
  }, newProps), disableOverlay ? null : /*#__PURE__*/React.createElement(ModalOverlay, null), children);
};

export default Actionsheet;
//# sourceMappingURL=Actionsheet.js.map