decord/source/modules/user_profile/hooks/useShouldConvertBioEmoji.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

30 lines
1 KiB
TypeScript

// Module ID: 8194
// Function ID: 8195
// Name: useShouldConvertBioEmoji
// Dependencies: [1935, 2]
// Exports: default, getShouldConvertBioEmoji
// Module 8194 (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;
};