import type { Merge } from 'type-fest'; import type { TagProps } from '../tag'; export type TagGroupOptionLabel = string | number | (() => string | number); export type TagGroupObjectOption = Merge, { label: TagGroupOptionLabel; value: string | number; itemProps?: Record; }> & Record; export type TagGroupOption = string | number | TagGroupObjectOption; export interface TagGroupFieldNames { label?: string; value?: string; } export interface TagGroupProps { maxCount?: number | 'responsive'; options?: TagGroupOption[]; fieldNames?: TagGroupFieldNames; }