admin reason!!

This commit is contained in:
legop3
2026-01-29 13:24:07 -05:00
parent be4c6260ae
commit 7216d9ba51
13 changed files with 431 additions and 133 deletions
+2
View File
@@ -19,6 +19,7 @@ const SessionContext = createContext({
setNickname: async () => {},
triggerReplay: async () => {},
setCommunityGoal: async () => {},
setAdminReason: async () => {},
});
function useAckEmitter(socket) {
@@ -115,6 +116,7 @@ export function SessionProvider({ children }) {
setNickname: (nickname) => emitWithAck('nickname:set', { nickname }),
triggerReplay: (sources = []) => emitWithAck('replay:trigger', { sources }),
setCommunityGoal: (text) => emitWithAck('communityGoal:set', { text }),
setAdminReason: (text) => emitWithAck('adminReason:set', { text }),
pushAlert: (alert) =>
setAlerts((prev) => [
...prev.slice(-49),