UNPKG

@ozen-ui/kit

Version:

React component library

20 lines (19 loc) 998 B
import { __assign, __rest } from "tslib"; import React, { forwardRef } from 'react'; import { useThemeProps } from '../../../../hooks/useThemeProps'; import { cn } from '../../../../utils/classname'; import { ListCardItemItemCarcass } from '../../components'; import { useListCardItemContext } from '../../ListCardItemContext'; export var cnListCardItemControlItem = cn('ListCardItemControlItem'); export var ListCardItemControlItem = forwardRef(function (inProps, ref) { var props = useThemeProps({ props: inProps, name: 'ListCardItemControlItem', }); var children = props.children, className = props.className, other = __rest(props, ["children", "className"]); var size = useListCardItemContext().size; return (React.createElement(ListCardItemItemCarcass, __assign({}, other, { ref: ref, className: cnListCardItemControlItem({ size: size, }, [className]) }), children)); }); ListCardItemControlItem.displayName = 'ListCardItemControlItem';