mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
import React from 'react'
|
|
import s from './StaticImage.module.scss'
|
|
import Image from 'next/image'
|
|
|
|
export interface Props {
|
|
src: StaticImageData,
|
|
alt?: string,
|
|
}
|
|
|
|
const StaticImage = ({ src, alt }: Props) => {
|
|
return (
|
|
<Image src={src} alt={alt} placeholder='blur' className={s.staticImage}/>
|
|
)
|
|
}
|
|
|
|
export default StaticImage |