refactor(converter): split converter card into modular section components
This commit is contained in:
22
components/converter/converter-card.constants.ts
Normal file
22
components/converter/converter-card.constants.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { MarketChartRange } from "@/lib/market";
|
||||
|
||||
export const DEFAULT_FROM = "USD";
|
||||
export const DEFAULT_TO = "BTC";
|
||||
export const QUICK_AMOUNTS = [10, 50, 100, 500, 1000] as const;
|
||||
export const DEFAULT_MULTI_CONVERSION_CODES = [
|
||||
"USD",
|
||||
"EUR",
|
||||
"BTC",
|
||||
"ETH",
|
||||
"SOL",
|
||||
] as const;
|
||||
export const MAX_MULTI_CONVERSIONS = 4;
|
||||
export const MAX_PINNED_PAIRS = 6;
|
||||
|
||||
export const MARKET_RANGE_LABELS: Record<MarketChartRange, string> = {
|
||||
"24h": "24h",
|
||||
"7d": "7d",
|
||||
"30d": "30d",
|
||||
"1y": "1y",
|
||||
all: "all",
|
||||
};
|
||||
Reference in New Issue
Block a user