UNPKG

@ozen-ui/kit

Version:

React component library

16 lines (15 loc) 791 B
import { __assign, __rest } from "tslib"; import React, { forwardRef } from 'react'; import { useThemeProps } from '../../../../hooks/useThemeProps'; import { cn } from '../../../../utils'; import { Avatar } from '../../../Avatar'; export var cnHeaderAccountAvatar = cn('HeaderAccountAvatar'); export var HeaderAccountAvatar = forwardRef(function (inProps, ref) { var props = useThemeProps({ props: inProps, name: 'HeaderAccountAvatar', }); var children = props.children, className = props.className, other = __rest(props, ["children", "className"]); return (React.createElement(Avatar, __assign({}, other, { ref: ref, size: "2xs", className: cnHeaderAccountAvatar('', [className]) }), children)); }); HeaderAccountAvatar.displayName = 'HeaderAccountAvatar';