@adyen/adyen-platform-experience-web
Version:

29 lines • 1.28 kB
TypeScript
import type { FilterType } from '../core/Analytics/analytics/user-events';
import type { SelectItem } from '../components/internal/FormFields/Select/types';
import type { IBalanceAccountBase } from '../types';
export declare const ALL_BALANCE_ACCOUNTS_SELECTION_ID: string;
export interface UseBalanceAccountSelectionProps {
allowAllSelection?: boolean;
balanceAccounts?: IBalanceAccountBase[];
eventCategory?: string;
eventSubCategory?: string;
eventLabel?: FilterType;
onUpdateSelection?: (balanceAccount?: IBalanceAccountBase) => void;
}
declare const useBalanceAccountSelection: ({ allowAllSelection, balanceAccounts, eventCategory, eventSubCategory, eventLabel, onUpdateSelection, }: UseBalanceAccountSelectionProps) => {
readonly activeBalanceAccount: {
defaultCurrencyCode: string;
description?: string;
id: string;
timeZone: string;
} | undefined;
readonly balanceAccountSelectionOptions: readonly SelectItem<string>[];
readonly onBalanceAccountSelection: ({ target }: {
target?: {
value: string;
};
}) => void;
readonly resetBalanceAccountSelection: () => void;
};
export default useBalanceAccountSelection;
//# sourceMappingURL=useBalanceAccountSelection.d.ts.map