pagamio-frontend-commons-lib
Version:
Pagamio library for Frontend reusable components like the form engine and table container
31 lines (30 loc) • 1.19 kB
TypeScript
import type { QueryProps } from 'src/shared/types';
import type { ChartToolTipProps, DistributionQueryProps, StatisticsQueryProps, TableColumn } from '../types';
interface ItemPerformanceCardProps<TData extends {
id: string | number;
}> {
title?: string;
query: QueryProps;
url?: string;
itemNameKey: string;
amountValueKey: string;
unitsValueKey: string;
metricDetailData?: {
statisticsUrl?: string;
itemStatisticsQuery: StatisticsQueryProps;
valueMetricsQuery: StatisticsQueryProps;
averageMetricsQuery: StatisticsQueryProps;
distributionMetricsQuery: DistributionQueryProps;
nameKey: string;
valueKey: string;
dataGridSearchKey: string;
dataGridColumns: TableColumn<TData>[];
dataSearchInputPlaceHolder: string;
chartToolTip?: ChartToolTipProps;
detailsTableTitle?: string;
};
}
declare const ItemPerformanceCard: <TData extends {
id: string | number;
}>({ title, query, url, itemNameKey, amountValueKey, unitsValueKey, metricDetailData, }: ItemPerformanceCardProps<TData>) => import("react/jsx-runtime").JSX.Element;
export default ItemPerformanceCard;