75 lines
1.4 KiB
TypeScript
75 lines
1.4 KiB
TypeScript
interface Translations {
|
|
dataTable: string;
|
|
tableWithApiData: string;
|
|
loading: string;
|
|
noDataAvailable: string;
|
|
page: string;
|
|
size: string;
|
|
total: string;
|
|
items: string;
|
|
first: string;
|
|
previous: string;
|
|
next: string;
|
|
selectPage: string;
|
|
selectSize: string;
|
|
}
|
|
|
|
interface TableHeaderProps {
|
|
title: string;
|
|
description: string;
|
|
isLoading: boolean;
|
|
error: string | null;
|
|
t: Translations;
|
|
}
|
|
|
|
interface LoadingSpinnerProps {
|
|
t: Translations;
|
|
}
|
|
|
|
interface ErrorDisplayProps {
|
|
message: string;
|
|
}
|
|
|
|
interface MobilePaginationControlsProps {
|
|
handlePreviousPage: () => void;
|
|
handleNextPage: () => void;
|
|
isPreviousDisabled: () => boolean;
|
|
isNextDisabled: () => boolean;
|
|
t: Translations;
|
|
}
|
|
|
|
interface DashboardPageProps {
|
|
searchParams: Record<string, any>;
|
|
activePageUrl?: string;
|
|
|
|
userData?: any;
|
|
userLoading?: boolean;
|
|
userError?: any;
|
|
refreshUser?: () => void;
|
|
updateUser?: (data: any) => void;
|
|
|
|
onlineData?: any;
|
|
onlineLoading?: boolean;
|
|
onlineError?: any;
|
|
refreshOnline?: () => void;
|
|
updateOnline?: (data: any) => void;
|
|
}
|
|
|
|
interface TableDataItem {
|
|
uu_id: string;
|
|
process_name: string;
|
|
bank_date: string;
|
|
currency_value: number | string;
|
|
[key: string]: any; // For any additional fields
|
|
}
|
|
|
|
export type {
|
|
Translations,
|
|
TableHeaderProps,
|
|
LoadingSpinnerProps,
|
|
ErrorDisplayProps,
|
|
MobilePaginationControlsProps,
|
|
DashboardPageProps,
|
|
TableDataItem,
|
|
};
|