mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 12:11:22 +00:00
26 lines
676 B
TypeScript
26 lines
676 B
TypeScript
import Link from 'next/link'
|
|
import React from 'react'
|
|
import { RecipeProps } from 'src/utils/types.utils'
|
|
import s from './CardBlog.module.scss'
|
|
export interface BlogCardProps extends RecipeProps {
|
|
link: string,
|
|
}
|
|
|
|
const CardBlog = ({ imageSrc, title, description, link }: BlogCardProps) => {
|
|
return (
|
|
<div className={s.cardBlogWarpper}>
|
|
<Link href={link}>
|
|
<div className={s.image}>
|
|
<img src={imageSrc} alt="image cardblog" />
|
|
</div>
|
|
</Link>
|
|
<Link href={link}>
|
|
<div className={s.title}>{title}</div>
|
|
</Link>
|
|
<div className={s.description}>{description}</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default CardBlog
|