decord/stable/source/modules/share/native/ShareScreenFooter.tsx
github-actions 57c2214117 chore: update source for stable 347.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-29 21:26:22 +00:00

44 lines
2 KiB
TypeScript

// Module ID: 14204
// Function ID: 14205
// Name: ShareScreenFooter
// Dependencies: [19, 21, 11974, 11975, 5218, 11983, 2]
// Exports: default
// Module 14204 (ShareScreenFooter)
import components_Button_Button from "components/Button/Button" /* 5218 */;
import useShareChatInputActions from "useShareChatInputActions" /* 11974 */;
import ShareFooterLayoutDefault from "ShareFooterLayout" /* 11975 */;
import noop from "module_19" /* 19 */;
const ShareChatInputDefault = tmp4(11983);
require = fn;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/share/native/ShareScreenFooter.tsx");
export default function ShareScreenFooter(arg0) {
({ setText, canSend, isSending, onSend, disabled } = arg0);
({ text, preview, sendLabel, appEntryKey } = arg0);
if (disabled === undefined) {
disabled = false;
}
const shareChatInputActions = useShareChatInputActions.useShareChatInputActions(setText, undefined, appEntryKey);
({ textInputRef, isInputFocused, handleSelectionChange, handleMessageFocus, handleMessageBlur, handlePressEmoji } = shareChatInputActions);
const obj2 = { preview, sendButton: null, chatInput: null, avoidKeyboard: null };
const obj3 = { variant: "primary", size: "md", text: sendLabel, disabled: null, onPress: null, loading: null };
let tmp6 = !canSend;
if (canSend) {
tmp6 = disabled;
}
obj3.disabled = tmp6;
let tmp7;
if (!isSending) {
tmp7 = onSend;
}
obj3.onPress = tmp7;
obj3.loading = isSending;
obj2.sendButton = jsx(components_Button_Button.Button, { variant: "primary", size: "md", text: sendLabel, disabled: null, onPress: null, loading: null });
obj2.chatInput = jsx(ShareChatInputDefault, { inputRef: textInputRef, text, onChange: setText, onSelectionChange: handleSelectionChange, onFocus: handleMessageFocus, onBlur: handleMessageBlur, onPressEmoji: handlePressEmoji, onSend, disabled });
obj2.avoidKeyboard = isInputFocused;
return jsx(ShareFooterLayoutDefault, { preview, sendButton: null, chatInput: null, avoidKeyboard: null });
};