UNPKG

@brizy/ui

Version:
16 lines (15 loc) 473 B
import { ReactElement } from "react"; import { IconSetData } from "./index"; import { Literal } from "../types"; export interface Props<T extends Literal> { item: IconSetData<T>; onChange: (s: T) => void; active?: T; dimensions: Dimensions; onRemove?: (id: T) => void; } export interface Dimensions { width: number; height: number; } export declare const Cell: ({ item, onChange, active, dimensions, onRemove }: Props<Literal>) => ReactElement;