@ozen-ui/kit
Version:
React component library
16 lines (15 loc) • 828 B
JavaScript
import { __assign, __rest } from "tslib";
import React from 'react';
import { useThemeProps } from '../../../../hooks/useThemeProps';
import { cn, polymorphicComponentWithRef } from '../../../../utils';
import { HEADER_LOGO_DEFAULT_TAG } from './constants';
export var cnHeaderLogo = cn('HeaderLogo');
export var HeaderLogo = polymorphicComponentWithRef(function (inProps, ref) {
var props = useThemeProps({
props: inProps,
name: 'HeaderLogo',
});
var _a = props.as, Tag = _a === void 0 ? HEADER_LOGO_DEFAULT_TAG : _a, children = props.children, className = props.className, other = __rest(props, ["as", "children", "className"]);
return (React.createElement(Tag, __assign({}, other, { className: cnHeaderLogo('', [className]), ref: ref }), children));
});
HeaderLogo.displayName = 'HeaderLogo';