43 lines
1.8 KiB
TypeScript
43 lines
1.8 KiB
TypeScript
// Module ID: 10593
|
|
// Function ID: 10594
|
|
// Name: UnifiedGiftModalRecipientSelectScreen
|
|
// Dependencies: [19, 17, 10594, 21, 4448, 712, 1499, 10595, 10561, 2]
|
|
// Exports: default
|
|
|
|
// Module 10593 (UnifiedGiftModalRecipientSelectScreen)
|
|
import noopAll from "noop" /* 19 */;
|
|
import ThemesDefault from "Themes" /* 712 */;
|
|
import SearchableUserListDefault from "SearchableUserList" /* 10595 */;
|
|
import { View } from "get ActivityIndicator" /* 17 */;
|
|
import { UserRowModes } from "UserRowModes" /* 10594 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4448 */;
|
|
|
|
const require = arg1;
|
|
noopAll;
|
|
createCacheKey = { container: null };
|
|
createCacheKey = { flex: 1, paddingTop: 16, backgroundColor: ThemesDefault.colors.MOBILE_ACTIONSHEET_BACKGROUND };
|
|
createCacheKey[0] = createCacheKey;
|
|
let closure_6 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("modules/checkout/native/gifting/UnifiedGiftModalRecipientSelectScreen.tsx");
|
|
|
|
export default function UnifiedGiftModalRecipientSelectScreen(setRecipientUser) {
|
|
setRecipientUser = setRecipientUser.setRecipientUser;
|
|
importDefault = undefined;
|
|
let obj = setRecipientUser(1499);
|
|
importDefault = obj.useNavigation();
|
|
obj = { style: callback().container, children: jsx(SearchableUserListDefault, obj) };
|
|
obj = {
|
|
onSelectUser(user) {
|
|
setRecipientUser(user);
|
|
navigation.navigate(setRecipientUser(closure_1_2[8]).UnifiedGiftModalScreens.GIFT_DETAIL);
|
|
},
|
|
rowMode: UserRowModes.NONE,
|
|
disableGradient: true,
|
|
disableThemedGradient: true
|
|
};
|
|
return <View onSelectUser={function onSelectUser(user) {
|
|
setRecipientUser(user);
|
|
navigation.navigate(setRecipientUser(closure_1_2[8]).UnifiedGiftModalScreens.GIFT_DETAIL);
|
|
}} rowMode={UserRowModes.NONE} disableGradient disableThemedGradient />;
|
|
};
|