'use client'; import { useAppContext } from '@/app/AppContext'; import type { CardStyle } from '@/types'; const cardStyleOptions: CardStyle[] = ['standard', 'color', 'grayscale']; export default function CardStyle() { const { gameData, isDM, settings, emitSettings } = useAppContext(); const tuneRadio = (cardStyle: CardStyle) => { emitSettings({ ...gameData, settings: { ...gameData.settings, cardStyle, }, }); }; return isDM ? (
Card style:
{cardStyleOptions.map((option, index) => ( ))}
) : null; }