decord/source/modules/dice_roll/DiceRollStore.tsx

27 lines
740 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11185
// Function ID: 11186
2026-07-20 16:05:17 +00:00
// Name: INITIAL_STATE
2026-07-29 08:29:29 +00:00
// Dependencies: [644, 2]
2026-07-20 16:05:17 +00:00
// Exports: useDiceRollState
2026-08-24 06:08:38 +00:00
// Module 11185 (INITIAL_STATE)
import set from "set" /* 2 */;
import keys from "keys" /* 644 */;
2026-07-23 10:11:24 +00:00
let obj = { channelId: null, rolling: false, dismissing: false, diceCount: 1, diceSides: 6, results: null };
obj = keys.create(() => obj);
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/dice_roll/DiceRollStore.tsx");
2026-07-20 16:05:17 +00:00
export default obj;
export const INITIAL_STATE = obj;
export const useDiceRollState = function useDiceRollState(channelId) {
2026-08-24 06:08:38 +00:00
closure_0 = channelId;
2026-07-23 10:11:24 +00:00
return obj((channelId) => {
2026-07-20 16:05:17 +00:00
let tmp = null;
2026-07-23 10:11:24 +00:00
if (channelId.channelId === closure_0) {
2026-07-20 16:05:17 +00:00
tmp = channelId;
}
return tmp;
});
};