You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
485 B
24 lines
485 B
import Image from 'next/image';
|
|
|
|
export interface Props {
|
|
title: string;
|
|
src: string;
|
|
width: number;
|
|
height: number;
|
|
}
|
|
|
|
export function Images(props: Props) {
|
|
return (
|
|
<div className='img'>
|
|
<Image
|
|
alt={props.title}
|
|
src={props.src}
|
|
height={props.height}
|
|
width={props.width}
|
|
objectFit='contain'
|
|
/>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default Images; |