import React from "react"; import { useSelector } from "react-redux"; import { Link } from "react-router-dom"; import { selectProfiles } from "@redux/outstaffingSlice"; import { LEVELS, SKILLS } from "@utils/constants"; import { urlForLocal } from "@utils/helper"; import cursorImg from "assets/icons/cursorImg.svg"; import rectangle from "assets/images/rectangle_secondPage.png"; import ErrorBoundary from "../../hoc/ErrorBoundary"; import "./description.scss"; const Description = ({ onLoadMore, isLoadingMore }) => { const candidatesListArr = useSelector(selectProfiles); return (
{candidatesListArr && Array.isArray(candidatesListArr) && candidatesListArr.length > 0 ? ( candidatesListArr.map((el) => (
{el.photo && ( )}

{" "} {el.specification} {SKILLS[el.position_id]},{" "} {LEVELS[el.level]}{" "}

{el.vc_text_short ? (
{el.vc_text_short}
) : (

Описание отсутствует...

)}
    {Array.isArray(el?.skillValues) && el.skillValues?.map((e) => (
  • {e.skill.name}
  • ))}
)) ) : (

В данный момент нет свободных специалистов в данной категории

)}
{candidatesListArr && ( )}
); }; export default Description;