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

39 lines
1.4 KiB
TypeScript
Raw Normal View History

// Module ID: 14667
// Function ID: 14668
2026-07-20 16:05:17 +00:00
// Name: EditIcon
// Dependencies: [19, 17, 21, 4607, 576, 10341, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 14667 (EditIcon)
import nativeDefault from "native" /* 576 */;
import PencilIcon from "PencilIcon" /* 10341 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
const View = fn(17).View;
const jsx = fn(21).jsx;
const createStyles = fn(4607);
const obj2 = { editIcon: { alignItems: "center", justifyContent: "center", backgroundColor: nativeDefault.colors.BACKGROUND_SURFACE_HIGH }, xs: null, sm: null };
let size = { width: 24, height: 24, borderRadius: nativeDefault.radii.md };
obj2.xs = size;
const size1 = { width: 32, height: 32, borderRadius: nativeDefault.radii.lg };
obj2.sm = size1;
let closure_5 = createStyles.createStyles(obj2);
size = fn(2);
const result = size.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";
}
const tmp = closure_5();
const editIcon = tmp;
2026-07-29 08:29:29 +00:00
const items = [tmp, style, str];
return <View style={noop.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(PencilIcon.PencilIcon, { size: str })}</View>;
2026-07-20 16:05:17 +00:00
};