import { ColorLabel } from '@elvia/elvis-colors'; import React, { FC } from 'react'; type AnyString = string & {}; type ColorLabelOrString = ColorLabel | AnyString; type IconSizes = 'xxs' | 'xs' | 'sm' | 'small' | 'md' | 'medium' | 'lg' | 'large' | 'xl' | 'xxl' | AnyString; export interface IconWrapperProps string; }> extends React.DetailedHTMLProps, HTMLElement> { /** * The icon to render from `@elvia/elvis-assets-icons`. */ icon: TIcon; color?: ColorLabelOrString; /** * Either a size from the `IconSizes` enum (e.g. `'sm'` or `'xl'`) or a custom size. */ size?: IconSizes; } /** Can be simplified with the use of `IconType` from `@elvia/elvis-assets-icons` if we are ok with a dependency from toolbox on assets-icons */ export type IconWrapperType string; } = { getIcon: (color?: ColorLabelOrString) => string; }> = FC>; export {};