You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
584 B
31 lines
584 B
import { DateRange } from "@mui/lab/DateRangePicker";
|
|
import { ScaleType } from "recharts/types/util/types";
|
|
|
|
|
|
export interface CovidData {
|
|
infected: number;
|
|
deceased: number;
|
|
recovered: number;
|
|
quarantined: number;
|
|
tested: number;
|
|
created_at: Date;
|
|
}
|
|
|
|
export interface ChartData {
|
|
name: string;
|
|
values: {
|
|
[key: string]: number
|
|
};
|
|
}
|
|
|
|
export interface ChartProps {
|
|
data: ChartData[];
|
|
scale?: ScaleType;
|
|
}
|
|
|
|
export interface DatePickerProps {
|
|
minDate: Date;
|
|
maxDate: Date;
|
|
value: DateRange<Date>;
|
|
setValue: Function;
|
|
}
|
|
|