2025-01-09 00:40:28 +03:00
|
|
|
import React from 'react';
|
|
|
|
import Image from "next/image";
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
className?: string;
|
|
|
|
imageUrl: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
const AvatarImage: React.FC<Props> =({ imageUrl, className}) => {
|
|
|
|
return(
|
|
|
|
<Image
|
|
|
|
src={`/images/${imageUrl}.png`}
|
|
|
|
alt={imageUrl}
|
|
|
|
className={`${className} relative`}
|
2025-01-14 18:28:14 +03:00
|
|
|
width={101}
|
|
|
|
height={100}
|
2025-01-09 00:40:28 +03:00
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default AvatarImage;
|