Files
GeneIT/geneit_app/src/widgets/MemberPhoto.tsx
Pierre Hubert c8ee881b2c
All checks were successful
continuous-integration/drone/push Build is passing
Genealogy as a feature (#175)
Start our journey into turning GeneIT as afully featured family intranet by making genealogy a feature that can be disabled by family admins

Reviewed-on: #175
2024-05-16 19:15:15 +00:00

20 lines
434 B
TypeScript

import { Avatar } from "@mui/material";
import { Member } from "../api/genealogy/MemberApi";
export function MemberPhoto(p: {
member?: Member;
width?: number;
}): React.ReactElement {
return (
<Avatar
sx={
p.width
? { width: `${p.width}px`, height: "auto", display: "inline-block" }
: undefined
}
variant="rounded"
src={p.member?.thumbnailURL ?? undefined}
/>
);
}