Support current battle choice promises and persistent notices
Verify and publish checkpoint container / container (push) Successful in 11m42s
Verify and publish checkpoint container / container (push) Successful in 11m42s
This commit is contained in:
1 parent
77d02b3231
commit
bd8377d87b
16 files changed
+684
-32
No files matched your search
@@ -0,0 +1,18 @@
|
||||
'use client';
|
||||
|
||||
import type { ActionableNotice as Notice } from '@/lib/actionable-notices';
|
||||
import { Button } from './ui/button';
|
||||
|
||||
/** Dismissal is local and never sends a game action. */
|
||||
export function ActionableNotice({ notice, onDismiss }: {
|
||||
notice: Notice | null;
|
||||
onDismiss: (id: number) => void;
|
||||
}) {
|
||||
if (!notice) return null;
|
||||
return <span className="block space-y-2" aria-live="polite">
|
||||
<span className="block">{notice.text}</span>
|
||||
<Button type="button" variant="outline" className="min-h-11" onClick={() => onDismiss(notice.id)}>
|
||||
Continue
|
||||
</Button>
|
||||
</span>;
|
||||
}
|
||||
Reference in new issue
Block a user