import { useState, useEffect } from 'react'; /** * Mana Symbol Settings Component * Allows users to toggle between custom circular symbols and Scryfall SVG symbols */ export default function ManaSymbolSettings({ onSettingsChange }) { const [useSVG, setUseSVG] = useState(false); useEffect(() => { // Load setting from localStorage const savedSetting = localStorage.getItem('mana-symbol-svg'); if (savedSetting !== null) { const shouldUseSVG = savedSetting === 'true'; setUseSVG(shouldUseSVG); if (onSettingsChange) { onSettingsChange({ useSVG: shouldUseSVG }); } } }, [onSettingsChange]); const handleToggle = () => { const newUseSVG = !useSVG; setUseSVG(newUseSVG); localStorage.setItem('mana-symbol-svg', newUseSVG.toString()); if (onSettingsChange) { onSettingsChange({ useSVG: newUseSVG }); } }; return (

Mana Symbol Style

{useSVG ? 'Using official Scryfall SVG symbols' : 'Using custom circular symbols'}

); }