/** * Summary metrics row for the deck builder main panel. * @param {{ stats: { totalCards: number, avgCmc: string|number, colorCounts: object, typeCounts: object } }} props */ export default function DeckBuilderStatsBar({ stats }) { return (
{stats.totalCards}/100
Cards
{stats.avgCmc}
Avg CMC
{Object.keys(stats.colorCounts).length}
Colors
{Object.keys(stats.typeCounts).length}
Types
); }