import React from 'react'; import Image from "next/image"; import InfoItem from "@/components/info-item"; import Link from "next/link"; interface Props { name: string; description?: string; skills: string[]; post?: string; image?: string; variant?: 'default' | 'secondary' | 'lg'; } const HumanCard: React.FC = ({name, description, image, skills,post, variant = 'default'}) => { const cardStyles = { default: { main: "px-[9px] pt-[11px] pb-[25px]", img: { w: 260, h: 181 }, name: "text-[18px]", description: "", blocks: "" }, secondary: { main: "flex w-full justify-between p-[11px]", img: { w: 218, h: 232 } }, lg: { main: "", img: { w: 303, h: 303 }, name: "text-[20px] max-w-full", description: "max-w-[300px]", blocks: "max-w-[300px]" } }; return ( {image ? image : image } {(variant === 'default' || variant === 'lg') &&
{name}
Работает с темами

{description}

{skills.slice(0, 3).map((skill, index) => { return })} {skills.length > 3 &&
+{skills.length - 3}
}
} {variant === 'secondary' &&
{name}
{post}
{skills.slice(0, 3).map((skill, index) => { return })} {skills.length > 3 &&
+{skills.length - 3}
}
} ); } export default HumanCard;