// public/js/screens/game/overlays.js — the match-ended plate and the solo pause plate. import { Button, MicroLabel, html } from '../../ui/components.js'; import { emptyMatch, store } from '../../store.js'; import { localAsset } from '../../data.js'; import { t } from '../../../../shared/i18n.js'; /** The room went back to its lobby without a result (match aborted): offer the way back. */ export function MatchEnded() { return html`
${t('同盟已返回等待室')}
<${Button} variant="primary" size="lg" icon="chevronLeft" onClick=${() => store.set({ match: emptyMatch() })}>${t('返回同盟')}/>${t('作战已暂停,计时与敌人行动均已停止')}