1 | /** @jsx h */
|
2 | import { h } from 'preact';
|
3 | import getComponent from './utils/get-styled-component';
|
4 | import { transitionIn } from './transition-in';
|
5 |
|
6 | export const Shield = transitionIn(getComponent({
|
7 | baseClasses: 'fixed transition w-100 h-100 top-0 left-0 bg-blue o-50',
|
8 | options: { transitions: ['firstRender'] },
|
9 | fn: ({ firstRender }) => firstRender ? 'o-0' : ''
|
10 | })); |
\ | No newline at end of file |