feat: add chess resign and undo actions
All checks were successful
Deploy blog-frontend / build-and-deploy (push) Successful in 2m16s

This commit is contained in:
박원엽
2026-06-24 09:01:13 +09:00
parent 924dd8b372
commit cc4fb0f947
8 changed files with 427 additions and 225 deletions

View File

@@ -19,6 +19,12 @@ export const outcomeBadgeTones: Record<ChessOutcome, 'neutral' | 'info' | 'succe
UNKNOWN: 'neutral',
};
export const getChessOutcomeLabel = (outcome: ChessOutcome, status?: string) => {
if (status === 'RESIGNED' && outcome === 'LOSS') return '기권패';
return outcomeLabels[outcome];
};
export const formatChessDateTime = (value?: string) => {
if (!value) return '';