2023-03-23 14:36:09 +01:00
|
|
|
import React from 'react';
|
|
|
|
import classnames from 'classnames';
|
|
|
|
|
|
|
|
import {
|
|
|
|
BackgroundColor,
|
|
|
|
BLOCK_SIZES,
|
|
|
|
} from '../../../helpers/constants/design-system';
|
|
|
|
|
|
|
|
import Box from '../../ui/box/box';
|
|
|
|
|
|
|
|
import { ModalOverlayProps } from './modal-overlay.types';
|
|
|
|
|
|
|
|
export const ModalOverlay: React.FC<ModalOverlayProps> = ({
|
|
|
|
onClick,
|
|
|
|
className = '',
|
|
|
|
...props
|
|
|
|
}) => (
|
|
|
|
<Box
|
|
|
|
className={classnames('mm-modal-overlay', className)}
|
|
|
|
backgroundColor={BackgroundColor.overlayDefault}
|
|
|
|
width={BLOCK_SIZES.FULL}
|
|
|
|
height={BLOCK_SIZES.FULL}
|
|
|
|
onClick={onClick}
|
2023-05-09 23:09:10 +02:00
|
|
|
aria-hidden="true"
|
2023-03-23 14:36:09 +01:00
|
|
|
{...props}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default ModalOverlay;
|