Create basic couple route

This commit is contained in:
2023-08-16 12:17:04 +02:00
parent 0652fbadc8
commit 328eada9ec
6 changed files with 668 additions and 0 deletions

View File

@ -0,0 +1,19 @@
import { Avatar } from "@mui/material";
import { Couple } from "../api/CoupleApi";
export function CouplePhoto(p: {
couple: Couple;
width?: number;
}): React.ReactElement {
return (
<Avatar
sx={
p.width
? { width: `${p.width}px`, height: "auto", display: "inline-block" }
: undefined
}
variant="rounded"
src={p.couple.thumbnailURL ?? undefined}
/>
);
}