Files
2026-07-28 01:06:53 +03:00

42 lines
2.9 KiB
TypeScript

/* Metro module 12679; source: modules/share/native/ShareScreenFooter.tsx; dependencies: [31, 33, 9770, 9771, 4578, 9788, 2] */
import ShareFooterLayout from './ShareFooterLayout.tsx'; /* Metro dependency 9771 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as UseShareChatInputActionsModule from './useShareChatInputActions.tsx'; /* Metro dependency 9770 */
function _fun97153(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12869:6, offset: 0x02174dc5, size: 138 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/share/native/ShareScreenFooter.tsx');
exports.default = ShareScreenFooter;
function ShareScreenFooter({text, setText, preview, sendLabel, canSend, isSending, onSend, appEntryKey, disabled}) { // fn#97154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12869:204, offset: 0x02174e4f, size: 331 bytes, params: 2, frame: 31
disabled = !(disabled === undefined) && disabled;
const {textInputRef, isInputFocused, handleSelectionChange, handleMessageFocus, handleMessageBlur,
handlePressEmoji} = (UseShareChatInputActionsModule).useShareChatInputActions(setText,
undefined, appEntryKey);
const object = {preview: preview};
const Button = (ButtonNativeModule).Button;
object.sendButton = (
<Button
variant="primary"
size="md"
text={sendLabel}
disabled={canSend ? disabled : !canSend}
onPress={isSending ? undefined : onSend}
loading={isSending}
/>
);
object.chatInput = ((Component) => <Component inputRef={textInputRef} text={text} onChange={setText} onSelectionChange={handleSelectionChange} onFocus={handleMessageFocus} onBlur={handleMessageBlur} onPressEmoji={handlePressEmoji} onSend={onSend} disabled={disabled} />)(importDefault(9788) /* metro dependency 9788: ShareChatInput */);
object.avoidKeyboard = isInputFocused;
return <ShareFooterLayout {...object} />;
}
}
global.__d(_fun97153, 12679, [31, 33, 9770, 9771, 4578, 9788,
2]) /* metro module 12679, dependencies: [31, 33, 9770, 9771, 4578, 9788, 2] */;