2021-07-09 14:43:56 +02:00
|
|
|
import Image from "next/image";
|
2020-03-19 23:30:37 +01:00
|
|
|
import { getImageUrl } from "takeshape-routing";
|
|
|
|
|
|
|
|
export default function Avatar({ name, picture }) {
|
|
|
|
return (
|
|
|
|
<div className="flex items-center">
|
2021-07-09 14:43:56 +02:00
|
|
|
<div className="w-12 h-12 relative mr-4">
|
|
|
|
<Image
|
|
|
|
src={getImageUrl(picture.path, {
|
|
|
|
fm: "jpg",
|
|
|
|
fit: "crop",
|
|
|
|
w: 100,
|
|
|
|
h: 100,
|
|
|
|
sat: -100,
|
|
|
|
})}
|
|
|
|
layout="fill"
|
|
|
|
className="rounded-full"
|
|
|
|
alt={name}
|
|
|
|
/>
|
|
|
|
</div>
|
2020-03-19 23:30:37 +01:00
|
|
|
<div className="text-xl font-bold">{name}</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|