import { Link } from "react-router-dom";
export default function Card({ name, iconImg, slug }) {
  return (
    <li>
      <Link className="service-card" to={`/services/${slug}`}>
        <img className="icon-img" src={iconImg} alt={name} />
        <p>{name}</p>
      </Link>
    </li>
  );
}
