tiny toasts!

This commit is contained in:
legop3
2026-01-15 17:44:26 -05:00
parent d4ce6e9092
commit f129449d5a
6 changed files with 25 additions and 19 deletions
+3
View File
@@ -710,6 +710,7 @@ function HudChatInput({ compact = false }) {
const [draft, setDraft] = useState('');
const [sending, setSending] = useState(false);
const canChat = session?.role !== 'spectator';
const hideHudChat = session?.role === 'spectator';
const currentRoverId = session?.assignment?.roverId || null;
const rover = useMemo(
() => session?.roster?.find((entry) => String(entry.id) === String(currentRoverId)) || null,
@@ -756,6 +757,8 @@ function HudChatInput({ compact = false }) {
}
}
if (hideHudChat) return null;
return (
<form onSubmit={handleSend} className={containerClass}>
<input