Files
discord-decomp/modules/collectibles/CollectiblesDebugStore.tsx
T
2026-11-01 12:12:55 +02:00

19 lines
525 B
TypeScript

// Metro module 5813 (f5814).
import { create } from "../../_bundle/Module644";
let c3626_0 = create((c15203_0) => ({
logs: [],
addLog: (c25629_0) => c15203_0((a0) => ({
logs: [...a0.logs, `[${new Date().toISOString().split("T")[0]}] ${c25629_0}`]
})),
clearLogs: () => c15203_0({
logs: []
})
}));
export { c3626_0 as useCollectiblesDebugStore };
export function addDebugLog(a0) {
const r7 = new Date().toLocaleTimeString("en-US", {
hour12: false
});
c3626_0.getState().addLog(`[${r7}] ${a0}`);
}