decord/source/modules/dice_roll/DiceRollStore.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

26 lines
740 B
TypeScript

// Module ID: 11963
// Function ID: 11964
// Name: INITIAL_STATE
// Dependencies: [560, 2]
// Exports: useDiceRollState
// Module 11963 (INITIAL_STATE)
import set from "set" /* 2 */;
import keys from "keys" /* 560 */;
let obj = { channelId: null, rolling: false, dismissing: false, diceCount: 1, diceSides: 6, results: null };
obj = keys.create(() => obj);
const result = set.fileFinishedImporting("modules/dice_roll/DiceRollStore.tsx");
export default obj;
export const INITIAL_STATE = obj;
export const useDiceRollState = function useDiceRollState(channelId) {
closure_0 = channelId;
return obj((channelId) => {
let tmp = null;
if (channelId.channelId === closure_0) {
tmp = channelId;
}
return tmp;
});
};