mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
🎨 styles: product detail imgs
:%s
This commit is contained in:
16
src/components/common/ImgWithLink/ImgWithLink.tsx
Normal file
16
src/components/common/ImgWithLink/ImgWithLink.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import React from 'react'
|
||||
import s from './ImgWithLink.module.scss'
|
||||
|
||||
export interface ImgWithLinkProps {
|
||||
src: string,
|
||||
alt?: string,
|
||||
}
|
||||
|
||||
const ImgWithLink = ({ src, alt }: ImgWithLinkProps) => {
|
||||
return (
|
||||
<img className={s.imgWithLink} src={src} alt={alt} />
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
export default ImgWithLink
|
Reference in New Issue
Block a user