decord/source/modules/share/native/ShareScreenFooter.tsx

56 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 13365
// Function ID: 13366
2026-07-20 16:05:17 +00:00
// Name: ShareScreenFooter
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 21, 12037, 12038, 4745, 12044, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 13365 (ShareScreenFooter)
2026-07-29 08:29:29 +00:00
import "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
const require = arg1;
const result = require("useShareChatInputActions").fileFinishedImporting("modules/share/native/ShareScreenFooter.tsx");
2026-07-20 16:05:17 +00:00
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;
2026-07-29 08:29:29 +00:00
({ setText, canSend, isSending, onSend, disabled } = arg0);
({ text, preview, sendLabel, appEntryKey } = arg0);
2026-07-20 16:05:17 +00:00
if (disabled === undefined) {
disabled = false;
}
2026-08-15 05:55:55 +00:00
let obj = require(12037) /* useShareChatInputActions */;
2026-07-20 16:05:17 +00:00
const shareChatInputActions = obj.useShareChatInputActions(setText, undefined, appEntryKey);
({ textInputRef, isInputFocused, handleSelectionChange, handleMessageFocus, handleMessageBlur, handlePressEmoji } = shareChatInputActions);
2026-07-29 08:29:29 +00:00
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;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[3] = tmp6;
let tmp7;
2026-07-20 16:05:17 +00:00
if (!isSending) {
2026-07-29 08:29:29 +00:00
tmp7 = onSend;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[4] = tmp7;
obj[5] = isSending;
2026-08-15 05:55:55 +00:00
obj[1] = jsx(require(4745) /* Button */.Button, { variant: "primary", size: "md", text: sendLabel, disabled: null, onPress: null, loading: null });
obj[2] = jsx(importDefault(12044), { inputRef: textInputRef, text, onChange: setText, onSelectionChange: handleSelectionChange, onFocus: handleMessageFocus, onBlur: handleMessageBlur, onPressEmoji: handlePressEmoji, onSend, disabled });
2026-07-29 08:29:29 +00:00
obj[3] = isInputFocused;
2026-08-15 05:55:55 +00:00
return jsx(importDefault(12038), { variant: "primary", size: "md", text: sendLabel, disabled: null, onPress: null, loading: null });
2026-07-20 16:05:17 +00:00
};