1 | import { h } from 'preact';
|
2 | import getComponent from './utils/get-styled-component';
|
3 | import omit from './utils/omit';
|
4 |
|
5 | export 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 |
|
9 | export 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 |