mirror of
https://github.com/fergalmoran/supanextail.git
synced 2025-12-22 09:17:54 +00:00
24 lines
455 B
TypeScript
24 lines
455 B
TypeScript
import Image from 'next/image';
|
|
|
|
type Properties = {
|
|
name: string;
|
|
picture: string;
|
|
};
|
|
|
|
const Avatar = ({ name, picture }: Properties): JSX.Element => {
|
|
return (
|
|
<div className="flex items-center">
|
|
<Image
|
|
src={picture}
|
|
className="w-12 h-12 rounded-full mr-4"
|
|
alt={name}
|
|
width={48}
|
|
height={48}
|
|
/>
|
|
<div className="text-xl font-bold">{name}</div>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Avatar;
|