import Link from "next/link"; import Image from "next/image"; import { motion } from "framer-motion"; import PropTypes from "prop-types"; import BlurImage from "@/public/image/placeholder/blur.jpg"; export default function ProjectCard({ project, index, activeCategory }) { return ( <> {project.category.includes(parseInt(activeCategory)) && ( Korobtsev

{project.year}

{project.title}

{project.desc[0].length > 125 ? `${project.desc[0].slice(0, 125)}...` : project.desc[0]}

{project.tech.map((t, index) => ( {t} ))}
)} ); } ProjectCard.propTypes = { project: PropTypes.object.isRequired, index: PropTypes.number.isRequired, activeCategory: PropTypes.oneOfType([PropTypes.string, PropTypes.number]) .isRequired, };