@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
27 lines • 956 B
TypeScript
import { OperationType } from 'types/serverTransactions.types';
import { WithTransactionType } from '../../../UI/types';
declare enum ButtonTextEnum {
inOut = "Show in/out operations",
fewer = "Show fewer operations",
all = "Show all operations"
}
export interface OperationListType extends WithTransactionType {
operations: OperationType[];
listLength?: number;
}
export declare function getOperationList({ operations, transaction, isExpanded, listLength }: OperationListType & {
isExpanded?: boolean;
}): {
displayedOperations: OperationType[];
toggleButtonText: ButtonTextEnum;
showToggleButton: boolean;
};
export declare function useGetOperationList(props: OperationListType): {
isExpanded: boolean;
displayedOperations: OperationType[];
showToggleButton: boolean;
toggleButtonText: ButtonTextEnum;
onToggleButtonClick: () => void;
};
export {};
//# sourceMappingURL=useGetOperationList.d.ts.map