decord/source/modules/messages/useMessageMaxLength.tsx

24 lines
998 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 7927
// Function ID: 63284
2026-07-20 16:05:17 +00:00
// Name: getMaxMessageLength_
2026-07-21 06:55:02 +00:00
// Dependencies: [0, 4294967295, 0, 0, 0]
2026-07-20 16:05:17 +00:00
// Exports: default, getMaxMessageLength
2026-07-21 06:55:02 +00:00
// Module 7927 (getMaxMessageLength_)
import __exportStarResult1 from "__exportStarResult1";
function getMaxMessageLength_(__exportStarResult1) {
return importDefault(dependencyMap[2]).canUseIncreasedMessageLength(__exportStarResult1.getCurrentUser()) ? closure_4 : closure_5;
2026-07-20 16:05:17 +00:00
}
({ MAX_MESSAGE_LENGTH_PREMIUM: closure_4, MAX_MESSAGE_LENGTH: closure_5 } = arg1(dependencyMap[1]));
const tmp2 = arg1(dependencyMap[1]);
2026-07-21 06:55:02 +00:00
const result = require("__exportStarResult1").fileFinishedImporting("modules/messages/useMessageMaxLength.tsx");
2026-07-20 16:05:17 +00:00
export default function useMessageMaxLength() {
2026-07-21 06:55:02 +00:00
const items = [__exportStarResult1];
return arg1(dependencyMap[3]).useStateFromStores(items, () => callback(__exportStarResult1));
2026-07-20 16:05:17 +00:00
};
export const getMaxMessageLength = function getMaxMessageLength() {
2026-07-21 06:55:02 +00:00
return getMaxMessageLength_(__exportStarResult1);
2026-07-20 16:05:17 +00:00
};