UNPKG

@arwes/react-frames

Version:

Futuristic Sci-Fi UI Web Framework

16 lines (15 loc) 924 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FrameNero = void 0; const tslib_1 = require("tslib"); const react_1 = tslib_1.__importStar(require("react")); const tools_1 = require("@arwes/tools"); const react_tools_1 = require("@arwes/react-tools"); const frames_1 = require("@arwes/frames"); const index_js_1 = require("../FrameBase/index.js"); const FrameNero = (0, react_tools_1.memo)((props) => { const { styled, animated, padding, cornerLength, cornerWidth } = props; const settings = (0, react_1.useMemo)(() => (0, frames_1.createFrameNeroSettings)({ styled, animated, padding, cornerLength, cornerWidth }), [styled, animated, padding, cornerLength, cornerWidth]); return (react_1.default.createElement(index_js_1.FrameBase, { ...props, className: (0, tools_1.cx)('arwes-frames-framenero', props.className), settings: settings })); }); exports.FrameNero = FrameNero;