import { FC } from 'react'; import { StyledCard } from './styles'; import Image from 'next/image'; import Link from 'next/link'; interface Props { title: string; description: string; image?: string; tags?: string[]; href: string; target?: HTMLAnchorElement['target']; onClick?: () => void; } const Card: FC = ({ title, description, image, tags, href, target, onClick }) => { return (

{title}

{description}

{tags && (
{tags.map((tag, index) => ( #{tag}  ))}
)}
{image ? ( ) : ( )}
); }; export default Card;