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

39 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 13987
// Function ID: 13988
2026-07-20 16:05:17 +00:00
// Name: EditIcon
2026-08-12 06:57:52 +00:00
// Dependencies: [19, 17, 21, 4344, 712, 9717, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-12 06:57:52 +00:00
// Module 13987 (EditIcon)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import { jsx } from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
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 };
createCacheKey = { alignItems: "center", justifyContent: "center", backgroundColor: require("Themes").colors.BACKGROUND_SURFACE_HIGH };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { width: 24, height: 24, borderRadius: require("Themes").radii.md };
const obj1 = { width: 24, height: 24, borderRadius: require("Themes").radii.md };
createCacheKey[2] = { width: 32, height: 32, borderRadius: require("Themes").radii.lg };
createCacheKey = createCacheKey.createStyles(createCacheKey);
const obj2 = { width: 32, height: 32, borderRadius: require("Themes").radii.lg };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").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-07-29 08:29:29 +00:00
const tmp = createCacheKey();
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(() => {
const iconContainerStyle = [_undefined.editIcon, "sm" === str ? _undefined.sm : _undefined.xs, style];
return { iconContainerStyle };
}, items).iconContainerStyle}>{jsx(style(str[5]).PencilIcon, { size: str })}</View>;
2026-07-20 16:05:17 +00:00
};