45 lines
2 KiB
TypeScript
45 lines
2 KiB
TypeScript
// Module ID: 13905
|
|
// Function ID: 13906
|
|
// Name: ShareScreenFooter
|
|
// Dependencies: [19, 21, 11692, 11693, 4975, 11701, 2]
|
|
// Exports: default
|
|
|
|
// Module 13905 (ShareScreenFooter)
|
|
import noopAll from "noop" /* 19 */;
|
|
import Button from "Button" /* 4975 */;
|
|
import useShareChatInputActions from "useShareChatInputActions" /* 11692 */;
|
|
import ShareFooterLayoutDefault from "ShareFooterLayout" /* 11693 */;
|
|
import ShareChatInputDefault from "ShareChatInput" /* 11701 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
|
|
require = arg1;
|
|
noopAll;
|
|
const result = require("set").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;
|
|
}
|
|
let obj = useShareChatInputActions;
|
|
const shareChatInputActions = obj.useShareChatInputActions(setText, undefined, appEntryKey);
|
|
({ textInputRef, isInputFocused, handleSelectionChange, handleMessageFocus, handleMessageBlur, handlePressEmoji } = shareChatInputActions);
|
|
obj = { preview, sendButton: null, chatInput: null, avoidKeyboard: null };
|
|
obj = { variant: "primary", size: "md", text: sendLabel, disabled: null, onPress: null, loading: null };
|
|
let tmp6 = !canSend;
|
|
if (canSend) {
|
|
tmp6 = disabled;
|
|
}
|
|
obj[3] = tmp6;
|
|
let tmp7;
|
|
if (!isSending) {
|
|
tmp7 = onSend;
|
|
}
|
|
obj[4] = tmp7;
|
|
obj[5] = isSending;
|
|
obj[1] = jsx(Button.Button, { variant: "primary", size: "md", text: sendLabel, disabled: null, onPress: null, loading: null });
|
|
obj[2] = jsx(ShareChatInputDefault, { inputRef: textInputRef, text, onChange: setText, onSelectionChange: handleSelectionChange, onFocus: handleMessageFocus, onBlur: handleMessageBlur, onPressEmoji: handlePressEmoji, onSend, disabled });
|
|
obj[3] = isInputFocused;
|
|
return jsx(ShareFooterLayoutDefault, { variant: "primary", size: "md", text: sendLabel, disabled: null, onPress: null, loading: null });
|
|
};
|