import { HTMLAttributes, Key } from 'react' type RequireAtLeastOne = Pick> & { [K in Keys]-?: Required> & Partial>> }[Keys] type RequiredKeys = { key: Key id: Key [key: string | number]: any } export type Item = RequireAtLeastOne export interface CollectionItemProps extends HTMLAttributes { key: Key textValue: string } export interface CollectSectionProps extends HTMLAttributes { key: Key title: string }