@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
25 lines • 934 B
TypeScript
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
import { TransactionBatchStatusesEnum, TransactionsDisplayInfoType } from 'types';
export interface ToastDataState {
id: string;
icon: IconDefinition;
hasCloseButton: boolean;
title: string;
iconClassName: string;
expires?: number | boolean;
}
interface GetToastsOptionsDataPropsType {
status?: TransactionBatchStatusesEnum;
toastId: string;
classes?: Record<'success' | 'warning' | 'danger' | string, 'success' | 'warning' | 'danger' | string>;
transactionDisplayInfo: TransactionsDisplayInfoType;
}
export declare const getToastDataStateByStatus: ({ status, toastId, classes, transactionDisplayInfo }: GetToastsOptionsDataPropsType) => {
id: string;
icon: IconDefinition;
title: string;
hasCloseButton: boolean;
iconClassName: string;
};
export {};
//# sourceMappingURL=getToastDataStateByStatus.d.ts.map