import Link from 'next/link'; import { Button } from './ui'; import { DECK_FORMAT_BADGE_STYLE, getDeckFormatIcon } from '../lib/deck-format-utils.js'; export default function DecksGrid({ decks, onEditDeck, onDeleteDeck, onCreateDeck }) { if (decks.length === 0) { return (
🃏

No decks yet

Create your first deck to get started

); } return (
{decks.map((deck) => (
{getDeckFormatIcon(deck.format)} {deck.format}

{deck.name}

{deck.description && (

{deck.description}

)}
{deck.card_count || 0} cards {deck.is_public && ( Public )}
))}
); }