decord/source/modules/profile_customization/native/EditIcon.tsx

40 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 14130
// Function ID: 14131
2026-07-20 16:05:17 +00:00
// Name: EditIcon
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 9822, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 14130 (EditIcon)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import closure_2 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
createCacheKey = { editIcon: null, xs: null, sm: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { alignItems: "center", justifyContent: "center", backgroundColor: ThemesDefault.colors.BACKGROUND_SURFACE_HIGH };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { width: 24, height: 24, borderRadius: ThemesDefault.radii.md };
const obj1 = { width: 24, height: 24, borderRadius: ThemesDefault.radii.md };
createCacheKey[2] = { width: 32, height: 32, borderRadius: ThemesDefault.radii.lg };
let closure_5 = createCacheKey.createStyles(createCacheKey);
const obj2 = { width: 32, height: 32, borderRadius: ThemesDefault.radii.lg };
const result = require("set").fileFinishedImporting("modules/profile_customization/native/EditIcon.tsx");
2026-07-20 16:05:17 +00:00
export default function EditIcon(style) {
style = style.style;
let str = style.size;
if (str === undefined) {
str = "xs";
}
let React;
2026-08-24 06:08:38 +00:00
const tmp = callback();
2026-07-20 16:05:17 +00:00
React = tmp;
2026-07-29 08:29:29 +00:00
const items = [tmp, style, str];
return <View style={React.useMemo(() => {
2026-08-24 06:08:38 +00:00
const iconContainerStyle = [editIcon.editIcon, "sm" === str ? editIcon.sm : editIcon.xs, style];
2026-07-29 08:29:29 +00:00
return { iconContainerStyle };
}, items).iconContainerStyle}>{jsx(style(str[5]).PencilIcon, { size: str })}</View>;
2026-07-20 16:05:17 +00:00
};