UNPKG

@ozen-ui/kit

Version:

React component library

16 lines (15 loc) 947 B
import { __assign, __rest } from "tslib"; import React from 'react'; import { useThemeProps } from '../../../../hooks/useThemeProps'; import { cn, polymorphicComponentWithRef } from '../../../../utils'; import { HEADER_CONTENT_ADDITIONAL_DEFAULT_TAG } from './constants'; export var cnHeaderContentAdditional = cn('HeaderContentAdditional'); export var HeaderContentAdditional = polymorphicComponentWithRef(function (inProps, ref) { var props = useThemeProps({ props: inProps, name: 'HeaderContentAdditional', }); var _a = props.as, Tag = _a === void 0 ? HEADER_CONTENT_ADDITIONAL_DEFAULT_TAG : _a, className = props.className, children = props.children, other = __rest(props, ["as", "className", "children"]); return (React.createElement(Tag, __assign({}, other, { ref: ref, className: cnHeaderContentAdditional('', [className]) }), children)); }); HeaderContentAdditional.displayName = 'HeaderContentAdditional';