decord/source/modules/dice_roll/DiceRollStore.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

26 lines
778 B
TypeScript

// Module ID: 12052
// Function ID: 12053
// Name: DiceRollStore
// Dependencies: [560, 2]
// Exports: useDiceRollState
// Module 12052 (DiceRollStore)
import module_560 from "module_560" /* 560 */;
import size from "module_2" /* 2 */;
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");
export default obj2;
export { INITIAL_STATE };
export const useDiceRollState = function useDiceRollState(channelId) {
closure_0 = channelId;
return obj2((channelId) => {
let tmp = null;
if (channelId.channelId === closure_0) {
tmp = channelId;
}
return tmp;
});
};