Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
58 lines
2.3 KiB
TypeScript
58 lines
2.3 KiB
TypeScript
// Module ID: 17135
|
|
// Function ID: 17136
|
|
// Name: InviteActivityButton
|
|
// Dependencies: [19, 11590, 5360, 21, 4603, 17136, 1896, 504, 11890, 5056, 10160, 1114, 2]
|
|
|
|
// Module 17135 (InviteActivityButton)
|
|
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4603 */;
|
|
import getCurrentUserPresenceActivityDefault from "getCurrentUserPresenceActivity" /* 11890 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import LocalActivityStore from "LocalActivityStore" /* 11590 */;
|
|
import SelfPresenceStore from "SelfPresenceStore" /* 5360 */;
|
|
|
|
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(17136, dependencyMap.paths), "ActivityInviteSheet-" + stateFromStores.session_id, { activity: stateFromStores });
|
|
},
|
|
icon: stateFromStores(10160),
|
|
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(5056).Button, {
|
|
onPress() {
|
|
const obj = ActionSheetActionCreatorsDefault;
|
|
obj.openLazy(asyncRequireImpl(17136, dependencyMap.paths), "ActivityInviteSheet-" + stateFromStores.session_id, { activity: stateFromStores });
|
|
},
|
|
icon: stateFromStores(10160),
|
|
text: null,
|
|
accessibilityLabel: null,
|
|
variant: "secondary-overlay",
|
|
size: "sm",
|
|
shrink: true,
|
|
maxFontSizeMultiplier: 1
|
|
});
|
|
}
|
|
return tmp4;
|
|
});
|