UNPKG

752 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.AbsoluteFill = void 0;
4const jsx_runtime_1 = require("react/jsx-runtime");
5const react_1 = require("react");
6const AbsoluteFill = (props) => {
7 const { style, ...other } = props;
8 const actualStyle = (0, react_1.useMemo)(() => {
9 return {
10 position: 'absolute',
11 top: 0,
12 left: 0,
13 right: 0,
14 bottom: 0,
15 width: '100%',
16 height: '100%',
17 display: 'flex',
18 flexDirection: 'column',
19 ...style,
20 };
21 }, [style]);
22 return (0, jsx_runtime_1.jsx)("div", { style: actualStyle, ...other }, void 0);
23};
24exports.AbsoluteFill = AbsoluteFill;