1 | import React from "react";
|
2 | interface IData {
|
3 | country: string;
|
4 | value: number;
|
5 | }
|
6 | interface ICountryContext {
|
7 | country: string;
|
8 | countryValue: number;
|
9 | color: string;
|
10 | minValue: number;
|
11 | maxValue: number;
|
12 | }
|
13 | interface IProps {
|
14 | data: IData[];
|
15 | title?: string;
|
16 | valuePrefix?: string;
|
17 | valueSuffix?: string;
|
18 | color?: string;
|
19 | tooltipBgColor?: string;
|
20 | tooltipTextColor?: string;
|
21 | size?: string;
|
22 | frame?: boolean;
|
23 | frameColor?: string;
|
24 | type?: string;
|
25 | styleFunction?: (context: ICountryContext) => {};
|
26 | tooltipTextFunction?: (countryName: string, isoCode: string, value: string, prefix: string, suffix: string) => string;
|
27 | borderColor?: string;
|
28 | }
|
29 | export declare const WorldMap: React.FC<IProps>;
|
30 | export {};
|