Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5051.js (118.4 MB)
44 lines
2 KiB
TypeScript
44 lines
2 KiB
TypeScript
// Module ID: 13646
|
|
// Function ID: 13647
|
|
// Name: ShareScreenFooter
|
|
// Dependencies: [19, 21, 11394, 11395, 5477, 11406, 2]
|
|
// Exports: default
|
|
|
|
// Module 13646 (ShareScreenFooter)
|
|
import components_Button_Button from "components/Button/Button" /* 5477 */;
|
|
import useShareChatInputActions from "useShareChatInputActions" /* 11394 */;
|
|
import ShareFooterLayoutDefault from "ShareFooterLayout" /* 11395 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const ShareChatInputDefault = tmp4(11406);
|
|
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 });
|
|
};
|