decord/source/modules/messages/useMessageMaxLength.tsx

24 lines
1,001 B
TypeScript
Raw Normal View History

2026-09-03 10:05:34 +00:00
// Module ID: 8172
// Function ID: 8173
2026-07-29 08:29:29 +00:00
// Name: useMessageMaxLength
2026-09-02 09:53:35 +00:00
// Dependencies: [1921, 673, 4139, 586, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, getMaxMessageLength
2026-09-03 10:05:34 +00:00
// Module 8172 (useMessageMaxLength)
2026-09-02 09:53:35 +00:00
import initialize from "initialize" /* 586 */;
2026-09-01 10:26:29 +00:00
import getPremiumPlanItemDefault from "getPremiumPlanItem" /* 4139 */;
2026-09-02 09:53:35 +00:00
import closure_3 from "mergeGuildAvatar" /* 1921 */;
import ME from "ME" /* 673 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
({ MAX_MESSAGE_LENGTH_PREMIUM: c4, MAX_MESSAGE_LENGTH: c5 } = ME);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/messages/useMessageMaxLength.tsx");
2026-07-20 16:05:17 +00:00
export default function useMessageMaxLength() {
2026-08-24 06:08:38 +00:00
const items = [closure_3];
return initialize.useStateFromStores(items, () => callback(table[2]).canUseIncreasedMessageLength(currentUser.getCurrentUser()) ? closure_4 : closure_5);
2026-07-20 16:05:17 +00:00
};
export const getMaxMessageLength = function getMaxMessageLength() {
2026-08-24 06:08:38 +00:00
return getPremiumPlanItemDefault.canUseIncreasedMessageLength(currentUser.getCurrentUser()) ? closure_4 : closure_5;
2026-07-20 16:05:17 +00:00
};