bananas-commerce-admin
Version:
What's this, an admin for apes?
12 lines (11 loc) • 414 B
TypeScript
import { PurchaseAmountItem } from "../../../types";
export declare function useExchangedData(data: PurchaseAmountItem[], shouldExchange: boolean, toCurrency?: string, exchangeRates?: Record<string, number>): {
exchangedData: {
amount: string;
currency: string;
site_code: string;
}[];
totalAmount: number;
onlyExchangedCurrency: boolean;
exchangeAvailable: boolean;
};