/* eslint-disable @next/next/no-img-element -- External card image URLs; next/image migration is out of scope. */ export default function CardEditorPreview({ formData }) { return (

Card Preview

{formData.image_url ? ( {formData.name} { e.target.style.display = 'none'; e.target.nextSibling.style.display = 'flex'; }} /> ) : null}
🃏
{formData.name || 'Card Name'}
{formData.set_name || 'Set Name'}

{formData.name || 'Card Name'}

{formData.set_name} • {formData.game}

{formData.rarity} • {formData.card_type}

{formData.current_price && (

${parseFloat(formData.current_price).toFixed(2)}

)}
); }