decord/source/modules/dice_roll/DiceRollStore.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

26 lines
740 B
TypeScript

// Module ID: 11959
// Function ID: 11960
// Name: INITIAL_STATE
// Dependencies: [560, 2]
// Exports: useDiceRollState
// Module 11959 (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;
});
};