Statistics
Total Cards:
{stats.totalCards}
Avg. CMC:
{stats.avgCmc}
Format:
{deck.format}
{/* Color Distribution */}
{Object.keys(stats.colorCounts).length > 0 && (
Color Distribution
{Object.entries(stats.colorCounts)
.sort(([, a], [, b]) => b - a)
.map(([color, count]) => (
))}
)}
{/* Type Distribution */}
{Object.keys(stats.typeCounts).length > 0 && (
Card Types
{Object.entries(stats.typeCounts)
.sort(([, a], [, b]) => b - a)
.slice(0, 8)
.map(([type, count]) => (
{type}
{count}
))}
)}
Group Cards By
{[
{ value: 'type', label: 'Card Type' },
{ value: 'cmc', label: 'Mana Cost' },
{ value: 'color', label: 'Color' },
{ value: 'rarity', label: 'Rarity' },
].map(option => (
))}