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: "", img: { w: 221, h: 221 }, name: "text-[18px]", }, secondary: { main: "flex w-full justify-between", img: { w: 218, h: 232 } }, lg: { main: "", img: { w: 280, h: 280 }, name: "text-[20px]", } }; return ( {image ? image : image } {(variant === 'default' || variant === 'lg') && <>
{name}
Работает с темами

{description}

{skills.map((skill, index) => { return })}
} {variant === 'secondary' &&
{name}
{post}
{skills.map((skill, index) => { return })}
} ); } export default HumanCard;