decord/source/modules/user_profile/hooks/useShouldConvertBioEmoji.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

30 lines
1 KiB
TypeScript

// Module ID: 8285
// Function ID: 8286
// Name: useShouldConvertBioEmoji
// Dependencies: [1935, 2]
// Exports: default, getShouldConvertBioEmoji
// Module 8285 (useShouldConvertBioEmoji)
import UserSettings from "UserSettings" /* 1935 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/user_profile/hooks/useShouldConvertBioEmoji.tsx");
export default function useShouldConvertBioEmoji() {
const UseLegacyChatInput = UserSettings.UseLegacyChatInput;
let setting = UseLegacyChatInput.useSetting();
const UseRichChatInput = UserSettings.UseRichChatInput;
if (!setting) {
setting = !UseRichChatInput.useSetting();
}
return setting;
};
export const getShouldConvertBioEmoji = function getShouldConvertBioEmoji() {
const UseLegacyChatInput = UserSettings.UseLegacyChatInput;
let setting = UseLegacyChatInput.getSetting();
if (!setting) {
const UseRichChatInput = UserSettings.UseRichChatInput;
setting = !UseRichChatInput.getSetting();
}
return setting;
};