mirror of
https://github.com/SomboChea/ui
synced 2024-06-28 14:05:33 +07:00
36 lines
685 B
JavaScript
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;
|
|
}
|