'use client'; import React from 'react'; import { List, Tag } from 'antd'; import { RightOutlined } from '@ant-design/icons'; import Image from 'next/image'; import { Link } from '../../navigation'; import { Locale } from '../../types/locale'; import { ExpertsData } from '../../types/experts'; export const ExpertsList = ({ data, locale }: { data: ExpertsData, locale: string }) => { const isRus = locale === Locale.ru; return ( ( )} description={(
{`${item.name} ${item?.surname || ''}`}
{`${item?.sessionCost}${isRus ? '₽' : '€'}`} / {`${item?.sessionDuration}${isRus ? 'мин' : 'min'}`}
)} />
{item?.tags?.slice(0, 2).map((skill) => {skill?.name})} {item?.tags?.length > 2 ? ( {`+${item?.tags?.length - 2}`} ) : null}
{item?.speciality}
{item?.specialityDesc}
{item?.description}
Details
)} /> ); };