1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-28 14:05:33 +07:00
verdaccio-ui/src/webui/components/Icon/types.js
2019-04-04 21:23:40 +02:00

36 lines
685 B
JavaScript

/**
* @prettier
* @flow
*/
import { Icons } from './index';
import type { Styles } from '../../../../types';
export interface IIconsMap {
brazil: string;
spain: string;
china: string;
nicaragua: string;
pakistan: string;
austria: string;
india: string;
earth: string;
verdaccio: string;
license: string;
time: string;
law: string;
version: string;
filebinary: string;
[key: string]: string;
}
export interface IProps {
name: $Keys<typeof Icons>;
className?: string;
// $FlowFixMe
onClick?: (event: SyntheticMouseEvent<SVGElement | HTMLSpanElement>) => void;
size?: 'sm' | 'md';
pointer?: boolean;
img?: boolean;
modifiers?: Styles;
}