+ {/* Hidden file input */}
+
+ {/* Clickable avatar tile */}
+
+
fileInput?.click()}
+ title="Click to change photo"
+ style={{
+ width: "48px",
+ height: "48px",
+ "border-radius": "10px",
+ display: "flex",
+ "align-items": "center",
+ "justify-content": "center",
+ overflow: "hidden",
+ background: props.currentAvatar ? "transparent" : "var(--accent, #fff676)",
+ color: "var(--accent-ink, #111214)",
+ "font-size": "16px",
+ "font-weight": "700",
+ cursor: "pointer",
+ border: "1px dashed var(--v2-border-border-base)",
+ }}
+ >
+
}>
+ {avatarInitials()}
+
+ }>
+

+
+
+
+
+
+
+
update("name", e.currentTarget.value)}
+ autofocus={props.isEmpty}
+ style={{ "font-size": "14px", "font-weight": "600" }}
+ />
+
update("role", e.currentTarget.value)}
+ />
+
update("affiliation", e.currentTarget.value)}
+ />
+
update("focus", e.currentTarget.value)}
+ />
+
+ )
+}
+
+function resizeImage(dataUrl: string, size: number): Promise