2024-10-30 22:26:19 +01:00
|
|
|
import Image from "next/image";
|
|
|
|
|
2024-10-30 18:28:41 +01:00
|
|
|
type Props = {
|
|
|
|
name: string;
|
|
|
|
picture: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
const Avatar = ({ name, picture }: Props) => {
|
|
|
|
return (
|
|
|
|
<div className="flex items-center">
|
2024-10-31 19:31:28 +01:00
|
|
|
<Image src={picture} className="rounded-full mr-4" alt={name} width={48} height={48} />
|
2024-10-30 18:28:41 +01:00
|
|
|
<div className="text-xl font-bold">{name}</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Avatar;
|