56 lines
2.1 KiB
TypeScript
56 lines
2.1 KiB
TypeScript
// Module ID: 12976
|
|
// Function ID: 100661
|
|
// Name: ShareScreenFooter
|
|
// Dependencies: [31, 33, 9854, 9855, 4544, 9863, 2]
|
|
// Exports: default
|
|
|
|
// Module 12976 (ShareScreenFooter)
|
|
import "result";
|
|
import { jsx } from "jsxProd";
|
|
|
|
const require = arg1;
|
|
const result = require("useShareChatInputActions").fileFinishedImporting("modules/share/native/ShareScreenFooter.tsx");
|
|
|
|
export default function ShareScreenFooter(arg0) {
|
|
let appEntryKey;
|
|
let canSend;
|
|
let disabled;
|
|
let handleMessageBlur;
|
|
let handleMessageFocus;
|
|
let handlePressEmoji;
|
|
let handleSelectionChange;
|
|
let isInputFocused;
|
|
let isSending;
|
|
let onSend;
|
|
let preview;
|
|
let sendLabel;
|
|
let setText;
|
|
let text;
|
|
let textInputRef;
|
|
({ setText, isSending, onSend, disabled } = arg0);
|
|
({ text, preview, sendLabel, canSend, appEntryKey } = arg0);
|
|
if (disabled === undefined) {
|
|
disabled = false;
|
|
}
|
|
let obj = require(9854) /* useShareChatInputActions */;
|
|
const shareChatInputActions = obj.useShareChatInputActions(setText, undefined, appEntryKey);
|
|
({ textInputRef, isInputFocused, handleSelectionChange, handleMessageFocus, handleMessageBlur, handlePressEmoji } = shareChatInputActions);
|
|
obj = { preview };
|
|
obj = { variant: "primary", size: "md", text: sendLabel };
|
|
let tmp4 = !canSend;
|
|
if (!tmp4) {
|
|
tmp4 = disabled;
|
|
}
|
|
obj.disabled = tmp4;
|
|
let tmp5;
|
|
if (!isSending) {
|
|
tmp5 = onSend;
|
|
}
|
|
obj.onPress = tmp5;
|
|
obj.loading = isSending;
|
|
obj.sendButton = jsx(require(4544) /* Button */.Button, { variant: "primary", size: "md", text: sendLabel });
|
|
const obj1 = { inputRef: textInputRef, text, onChange: setText, onSelectionChange: handleSelectionChange, onFocus: handleMessageFocus, onBlur: handleMessageBlur, onPressEmoji: handlePressEmoji, onSend, disabled };
|
|
obj.chatInput = jsx(importDefault(9863), { inputRef: textInputRef, text, onChange: setText, onSelectionChange: handleSelectionChange, onFocus: handleMessageFocus, onBlur: handleMessageBlur, onPressEmoji: handlePressEmoji, onSend, disabled });
|
|
obj.avoidKeyboard = isInputFocused;
|
|
return jsx(importDefault(9855), { variant: "primary", size: "md", text: sendLabel });
|
|
};
|