refactor(converter): split converter card into modular section components

This commit is contained in:
2026-03-30 19:26:18 +02:00
parent a45393ac00
commit 24f21d25bc
11 changed files with 1075 additions and 755 deletions

View 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",
};