UNPKG

451 BJavaScriptView Raw
1import { h } from 'preact';
2import getComponent from './utils/get-styled-component';
3import omit from './utils/omit';
4
5export const FullScreenOverlayWrapper = getComponent({
6 baseClasses: 'fixed top-0 left-0 z-999 w-100 h-100 bg-gray flex items-center dark-blue'
7});
8
9export const FullScreenOverlay = props => h(
10 FullScreenOverlayWrapper,
11 omit(props, ['children']),
12 h(
13 'div',
14 { className: 'center ph2 ph4-m' },
15 props.children
16 )
17);
\No newline at end of file