import { Action } from "easy-peasy";

type Currency = "GBP" | "USD" | "EUR";

interface CurrencyModel {
	selectedCurrency: Currency;
	setSelectedCurrency: Action<CurrencyModel, Currency>;
	currencies: Currency[];
	conversionRates: Record<Currency, number>;
	tickers: Record<Currency, string>;
}

interface StoreModel {
	currency: CurrencyModel;
}

export type { StoreModel, Currency };
