decord/source/modules/gif_picker/native/GIFPickerSearchSuggestions.tsx

61 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10242
// Function ID: 10243
// Dependencies: [19, 17, 10233, 21, 4668, 712, 589, 4739, 1236, 4750, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 10242
import ThemesDefault from "Themes" /* 712 */;
import { View } from "get ActivityIndicator" /* 17 */;
import closure_4 from "getFormatFromUrl" /* 10233 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
import importAllResult from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ jsx: c5, jsxs: closure_6 } = jsxProd);
let obj = { suggestionsContainer: null, footerSuggestionsContainer: null, footerSuggestionsTitle: null };
2026-08-24 06:08:38 +00:00
obj = { justifyContent: "center", flexDirection: "row", flexWrap: "wrap", gap: ThemesDefault.space.PX_8 };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-08-24 06:08:38 +00:00
createCacheKey = { justifyContent: "flex-start", paddingVertical: ThemesDefault.space.PX_16 };
2026-07-29 08:29:29 +00:00
obj[1] = createCacheKey;
2026-08-24 06:08:38 +00:00
obj[2] = { marginBottom: ThemesDefault.space.PX_16, textAlign: "center" };
2026-07-29 08:29:29 +00:00
let closure_7 = createCacheKey.createStyles(obj);
2026-08-24 06:08:38 +00:00
const obj2 = { marginBottom: ThemesDefault.space.PX_16, textAlign: "center" };
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo(function GIFPickerSearchSuggestions(onClickSuggestion) {
2026-07-23 10:11:24 +00:00
onClickSuggestion = onClickSuggestion.onClickSuggestion;
2026-07-20 16:05:17 +00:00
const tmp = callback3();
2026-07-29 08:29:29 +00:00
let obj = onClickSuggestion(589);
2026-08-24 06:08:38 +00:00
const items = [closure_4];
2026-07-29 08:29:29 +00:00
const stateFromStoresArray = obj.useStateFromStoresArray(items, () => suggestions.getSuggestions());
let tmp4 = null;
2026-07-20 16:05:17 +00:00
if (0 !== stateFromStoresArray.length) {
2026-07-29 08:29:29 +00:00
obj = { style: null, children: null };
obj[0] = tmp.footerSuggestionsContainer;
obj = { style: null, variant: "text-md/medium", color: "text-default", children: null };
obj[0] = tmp.footerSuggestionsTitle;
const intl = tmp2(1236).intl;
obj[3] = intl.string(tmp2(1236).t["3JGJo2"]);
2026-08-24 06:08:38 +00:00
const items1 = [callback(tmp2(4739).Text, obj), ];
obj1 = { style: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[0] = tmp.suggestionsContainer;
2026-08-24 06:08:38 +00:00
obj1[1] = stateFromStoresArray.map((text) => {
closure_0 = text;
return closure_1_5(onClickSuggestion(closure_1_2[9]).Button, {
size: "sm",
variant: "secondary",
hitSlop: closure_1_1(closure_1_2[5]).space.PX_8,
text,
onPress() {
return text(text);
}
}, text);
2026-07-29 08:29:29 +00:00
});
2026-07-20 16:05:17 +00:00
items1[1] = callback(View, obj1);
2026-07-29 08:29:29 +00:00
obj[1] = items1;
tmp4 = callback2(View, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp4;
2026-07-20 16:05:17 +00:00
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/gif_picker/native/GIFPickerSearchSuggestions.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;