front_gestalt/components/avatar-image.tsx

21 lines
434 B
TypeScript
Raw Normal View History

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`}
width={67}
height={67}
/>
);
}
export default AvatarImage;