All checks were successful
continuous-integration/drone/push Build is passing
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
20 lines
434 B
TypeScript
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}
|
|
/>
|
|
);
|
|
}
|