update 14/01
This commit is contained in:
18
src/components/shared/ImageItem.tsx
Normal file
18
src/components/shared/ImageItem.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
'use client';
|
||||
import Image from 'next/image';
|
||||
import Link from 'next/link';
|
||||
|
||||
export default function ImageComponent({item}:any){
|
||||
return(
|
||||
<Link href={item.desUrl}>
|
||||
<Image
|
||||
src={item.fileUrl}
|
||||
alt={item.name}
|
||||
width={100}
|
||||
height={100}
|
||||
className="block w-full"
|
||||
unoptimized
|
||||
/>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user