Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
58 lines
2.3 KiB
TypeScript
58 lines
2.3 KiB
TypeScript
// Module ID: 17060
|
|
// Function ID: 17061
|
|
// Name: InviteActivityButton
|
|
// Dependencies: [19, 11489, 5293, 21, 4541, 17061, 1896, 504, 11792, 4989, 10063, 1114, 2]
|
|
|
|
// Module 17060 (InviteActivityButton)
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4541 */;
|
|
import getCurrentUserPresenceActivityDefault from "getCurrentUserPresenceActivity" /* 11792 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import LocalActivityStore from "LocalActivityStore" /* 11489 */;
|
|
import SelfPresenceStore from "SelfPresenceStore" /* 5293 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/activities/panel/native/InviteActivityButton.tsx");
|
|
|
|
export default noop.memo(function InviteActivityButton(applicationId) {
|
|
applicationId = applicationId.applicationId;
|
|
const items = [LocalActivityStore, SelfPresenceStore];
|
|
const items1 = [applicationId];
|
|
const stateFromStores = applicationId(504).useStateFromStores(items, () => getCurrentUserPresenceActivityDefault(LocalActivityStore, SelfPresenceStore, applicationId), items1);
|
|
let tmp4 = null;
|
|
if (null != stateFromStores) {
|
|
const obj2 = {
|
|
onPress() {
|
|
const obj = ActionSheetActionCreatorsDefault;
|
|
obj.openLazy(asyncRequireImpl(17061, dependencyMap.paths), "ActivityInviteSheet-" + stateFromStores.session_id, { activity: stateFromStores });
|
|
},
|
|
icon: stateFromStores(10063),
|
|
text: null,
|
|
accessibilityLabel: null,
|
|
variant: "secondary-overlay",
|
|
size: "sm",
|
|
shrink: true,
|
|
maxFontSizeMultiplier: 1
|
|
};
|
|
const intl = tmp(1114).intl;
|
|
obj2.text = intl.string(tmp(1114).t["OzOM/q"]);
|
|
const intl2 = tmp(1114).intl;
|
|
obj2.accessibilityLabel = intl2.string(tmp(1114).t["OzOM/q"]);
|
|
tmp4 = jsx(tmp(4989).Button, {
|
|
onPress() {
|
|
const obj = ActionSheetActionCreatorsDefault;
|
|
obj.openLazy(asyncRequireImpl(17061, dependencyMap.paths), "ActivityInviteSheet-" + stateFromStores.session_id, { activity: stateFromStores });
|
|
},
|
|
icon: stateFromStores(10063),
|
|
text: null,
|
|
accessibilityLabel: null,
|
|
variant: "secondary-overlay",
|
|
size: "sm",
|
|
shrink: true,
|
|
maxFontSizeMultiplier: 1
|
|
});
|
|
}
|
|
return tmp4;
|
|
});
|