{"ast":null,"code":"import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nimport cn from 'classnames';\nimport CircleButton from 'components/gui/CircleButton';\nimport { usePreventBodyScroll } from 'hooks/usePreventBodyScroll';\nimport styles from './Overlay.module.scss';\n\nconst Overlay = ({\n  children,\n  className,\n  backColor,\n  onClose,\n  buttonColor\n}) => {\n  usePreventBodyScroll();\n  return /*#__PURE__*/_jsxs(\"div\", {\n    className: cn(styles.overlay, backColor && styles['overlay-' + backColor], className),\n    children: [children, onClose && /*#__PURE__*/_jsx(CircleButton, {\n      onClick: onClose,\n      className: cn(styles.closeButton),\n      color: buttonColor,\n      icon: \"close\"\n    })]\n  });\n};\n\nexport default Overlay;","map":null,"metadata":{},"sourceType":"module"}