'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 {notice.text} ; }