Add shared deck format helpers and DecksCreateModal; decks page keeps the edit modal inline for Brief 2. Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
533 B
JavaScript
23 lines
533 B
JavaScript
export const DECK_FORMAT_OPTIONS = ['Commander', 'Standard', 'Modern', 'Legacy'];
|
|
|
|
export const DECK_INPUT_FIELD_CLASS = 'input-field w-full';
|
|
|
|
export const DECK_FORMAT_BADGE_STYLE = {
|
|
backgroundColor: 'var(--bg-tertiary)',
|
|
color: 'var(--text-primary)',
|
|
};
|
|
|
|
export function getDeckFormatIcon(format) {
|
|
switch (format) {
|
|
case 'Commander':
|
|
return '⚔️';
|
|
case 'Standard':
|
|
return '🏆';
|
|
case 'Modern':
|
|
return '🔥';
|
|
case 'Legacy':
|
|
return '💎';
|
|
default:
|
|
return '🃏';
|
|
}
|
|
}
|