21 lines
434 B
TypeScript
21 lines
434 B
TypeScript
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; |