decord/source/modules/dice_roll/DiceRollStore.tsx

27 lines
778 B
TypeScript
Raw Normal View History

// Module ID: 11989
// Function ID: 11990
// Name: DiceRollStore
// Dependencies: [560, 2]
2026-07-20 16:05:17 +00:00
// Exports: useDiceRollState
// Module 11989 (DiceRollStore)
import module_560 from "module_560" /* 560 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const INITIAL_STATE = { channelId: null, rolling: false, dismissing: false, diceCount: 1, diceSides: 6, results: null };
const obj2 = module_560.create(() => obj);
const result = size.fileFinishedImporting("modules/dice_roll/DiceRollStore.tsx");
2026-07-20 16:05:17 +00:00
export default obj2;
export { INITIAL_STATE };
2026-07-20 16:05:17 +00:00
export const useDiceRollState = function useDiceRollState(channelId) {
2026-08-24 06:08:38 +00:00
closure_0 = channelId;
return obj2((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;
});
};