Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | import type { StyleProp, ViewStyle } from 'react-native';
import type { RequestCategory } from '@/types/request';
export type ChartRequestPeriod = 'week' | 'month';
export interface ChartRequestActivity {
category: RequestCategory;
count: number;
label?: string;
color?: string;
}
export interface ChartRequestColoredActivity {
category: RequestCategory;
label: string;
count: number;
color: string;
}
export interface ChartRequestPeriodInfo {
activities: ChartRequestActivity[];
}
export interface ChartRequestProps {
week: ChartRequestPeriodInfo;
month: ChartRequestPeriodInfo;
initialPeriod?: ChartRequestPeriod;
period?: ChartRequestPeriod;
onPeriodChange?: (period: ChartRequestPeriod) => void;
weekLabel?: string;
monthLabel?: string;
totalLabel?: string;
testID?: string;
style?: StyleProp<ViewStyle>;
}
|