import { forwardRef } from 'react' import type { HTMLAttributes, ReactNode } from 'react' import { cn } from '@/lib/utils' import { CloseLine } from '../basic/icons-inline' export interface ChatContextTagProps extends Omit, 'children'> { label: ReactNode icon?: ReactNode onRemove?: () => void removeLabel?: string } export const ChatContextTag = forwardRef( ({ label, icon, onRemove, removeLabel = 'Remove context', className, ...props }, ref) => ( {icon ? ( {icon} ) : null} {label} {onRemove ? ( ) : null} ) ) ChatContextTag.displayName = 'ChatContextTag'