import { useQuery } from "@tanstack/react-query"; import { getCardByIdQueryOptions } from "@/lib/queries"; import type { ScryfallId } from "@/lib/scryfall-types"; import { CardImage } from "../CardImage"; interface CardPreviewPaneProps { cardId: ScryfallId; } export function CardPreviewPane({ cardId }: CardPreviewPaneProps) { const { data } = useQuery(getCardByIdQueryOptions(cardId)); return (