pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
38 lines (37 loc) • 1.19 kB
TypeScript
import React from 'react';
import type { FilterConfig } from './components/types';
interface Config {
title: string;
summary: string;
filters: FilterConfig[];
tourFilters?: FilterConfig[];
themeColor?: string;
}
export interface MetricsDataProps {
id: number;
gridColSpan?: number;
metricData: any;
}
export interface VisualDataProps {
id: number;
sectionTitle: string;
data: MetricsDataProps[];
}
interface DashboardWrapperProps {
data: {
config: Config;
visualData: VisualDataProps[];
eventsVisualData?: VisualDataProps[];
};
showEventsTabbedLayout?: boolean;
handleFilterChange?: (name: string, value: string | string[] | null) => void;
handleTourFilterChange?: (name: string, value: string | string[] | null) => void;
selectedFilters?: Record<string, string | string[] | null>;
tourSelectedFilters?: Record<string, string | string[] | null>;
resetFilters?: () => void;
handleApplyFilters?: () => void;
handleApplyTourFilters?: () => void;
}
declare const DashboardWrapper: React.FC<DashboardWrapperProps>;
export default DashboardWrapper;
export type { DashboardWrapperProps };