UNPKG

@ozen-ui/kit

Version:

React component library

11 lines (10 loc) 722 B
import { __assign, __rest } from "tslib"; import React from 'react'; import { polymorphicComponentWithRef, cn } from '../../../../utils'; import { DIALOG_ILLUSTRATION_DEFAULT_TAG } from './constants'; export var cnDialogIllustration = cn('DialogNextIllustration'); export var DialogIllustration = polymorphicComponentWithRef(function (_a, ref) { var children = _a.children, className = _a.className, _b = _a.as, Tag = _b === void 0 ? DIALOG_ILLUSTRATION_DEFAULT_TAG : _b, other = __rest(_a, ["children", "className", "as"]); return (React.createElement(Tag, __assign({}, other, { ref: ref, className: cnDialogIllustration('', [className]) }), children)); }); DialogIllustration.displayName = 'DialogIllustration';