decord/source/modules/user_profile/hooks/useShouldConvertBioEmoji.tsx

31 lines
1.1 KiB
TypeScript
Raw Normal View History

// Module ID: 8168
// Function ID: 8169
2026-07-20 16:05:17 +00:00
// Name: useShouldConvertBioEmoji
// Dependencies: [1935, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, getShouldConvertBioEmoji
// Module 8168 (useShouldConvertBioEmoji)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import explicitContentFromProto from "explicitContentFromProto" /* 1935 */;
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/user_profile/hooks/useShouldConvertBioEmoji.tsx");
2026-07-20 16:05:17 +00:00
export default function useShouldConvertBioEmoji() {
2026-08-24 06:08:38 +00:00
const UseLegacyChatInput = explicitContentFromProto.UseLegacyChatInput;
2026-07-20 16:05:17 +00:00
let setting = UseLegacyChatInput.useSetting();
2026-08-24 06:08:38 +00:00
const UseRichChatInput = explicitContentFromProto.UseRichChatInput;
2026-07-20 16:05:17 +00:00
if (!setting) {
setting = !UseRichChatInput.useSetting();
}
return setting;
};
export const getShouldConvertBioEmoji = function getShouldConvertBioEmoji() {
2026-08-24 06:08:38 +00:00
const UseLegacyChatInput = explicitContentFromProto.UseLegacyChatInput;
2026-07-20 16:05:17 +00:00
let setting = UseLegacyChatInput.getSetting();
if (!setting) {
2026-08-24 06:08:38 +00:00
const UseRichChatInput = explicitContentFromProto.UseRichChatInput;
2026-07-20 16:05:17 +00:00
setting = !UseRichChatInput.getSetting();
}
return setting;
};