@ozen-ui/kit
Version:
React component library
15 lines (14 loc) • 741 B
JavaScript
import { __assign, __rest } from "tslib";
import React, { forwardRef } from 'react';
import { cn } from '../../../../utils/classname';
import { useDialogContext } from '../../DialogContext';
export var cnDialogSubtitle = cn('DialogNextSubtitle');
export var DialogSubtitle = forwardRef(function (_a, ref) {
var children = _a.children, className = _a.className, other = __rest(_a, ["children", "className"]);
var _b = useDialogContext(), deviceType = _b.deviceType, size = _b.size;
return (React.createElement("div", __assign({}, other, { ref: ref, className: cnDialogSubtitle({
deviceType: deviceType,
size: size,
}, [className]) }), children));
});
DialogSubtitle.displayName = 'DialogSubtitle';