diff --git a/src/components/deck/CardModal.tsx b/src/components/deck/CardModal.tsx
index 2038336..3cf46ad 100644
--- a/src/components/deck/CardModal.tsx
+++ b/src/components/deck/CardModal.tsx
@@ -2,20 +2,24 @@ import { useQuery } from "@tanstack/react-query";
import { Minus, Plus, Trash2, X } from "lucide-react";
import { useEffect, useId, useState } from "react";
import { CardImage } from "@/components/CardImage";
+import { PrintingSelector } from "@/components/deck/PrintingSelector";
import { TagAutocomplete } from "@/components/deck/TagAutocomplete";
import { ManaCost } from "@/components/ManaCost";
import { getPrimaryFace } from "@/lib/card-faces";
import type { DeckCard, Section } from "@/lib/deck-types";
import { getCardByIdQueryOptions } from "@/lib/queries";
+import type { ScryfallId } from "@/lib/scryfall-types";
interface CardModalProps {
card: DeckCard;
isOpen: boolean;
onClose: () => void;
onUpdateQuantity: (quantity: number) => void;
+ onUpdatePrinting: (newScryfallId: ScryfallId) => void;
onUpdateTags: (tags: string[]) => void;
onMoveToSection: (section: Section) => void;
onDelete: () => void;
+ onCardHover?: (cardId: ScryfallId | null) => void;
readOnly?: boolean;
allTags?: string[];
}
@@ -25,9 +29,11 @@ export function CardModal({
isOpen,
onClose,
onUpdateQuantity,
+ onUpdatePrinting,
onUpdateTags,
onMoveToSection,
onDelete,
+ onCardHover,
readOnly = false,
allTags = [],
}: CardModalProps) {
@@ -286,6 +292,16 @@ export function CardModal({
)}
+
+ {/* Printing */}
+ {!readOnly && (
+