import { BlockProperties, Component, Editor } from '../types'; import { IconifyComponentOptions as IconifyComponentOptionsSchema } from './typesSchema'; export interface IconifyComponentOptions extends Omit { block?: Partial | false; } export interface IconifyCollection { prefix: string; icons: Record[]; height: number; width: number; } export interface OpenIconPickerProps { collectionIds?: string[]; editor: Editor; component: Component; } export interface IconPickerListProps { editor: Editor; handleClick: IconClickHandler; collectionId: string; collection: IconifyCollection; collectionFiltered?: IconifyCollection; } export interface IconPickerHeaderProps extends Omit { collectionsList: Array; } export type IconifyCollections = Record; export type IconClickHandler = ({ icon, collectionId, iconId }: { icon: string; collectionId: string; iconId: string; }) => void;