1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-04-28 23:51:36 +07:00
verdaccio-ui/src/components/Icon/types.js
Priscila Oliveira e2d478d65b initial commit
2019-02-03 17:04:42 +01:00

33 lines
629 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;
[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;
}