UNPKG

@ozen-ui/kit

Version:

React component library

14 lines (13 loc) 920 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DialogIllustration = exports.cnDialogIllustration = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var utils_1 = require("../../../../utils"); var constants_1 = require("./constants"); exports.cnDialogIllustration = (0, utils_1.cn)('DialogNextIllustration'); exports.DialogIllustration = (0, utils_1.polymorphicComponentWithRef)(function (_a, ref) { var children = _a.children, className = _a.className, _b = _a.as, Tag = _b === void 0 ? constants_1.DIALOG_ILLUSTRATION_DEFAULT_TAG : _b, other = tslib_1.__rest(_a, ["children", "className", "as"]); return (react_1.default.createElement(Tag, tslib_1.__assign({}, other, { ref: ref, className: (0, exports.cnDialogIllustration)('', [className]) }), children)); }); exports.DialogIllustration.displayName = 'DialogIllustration';