import React, { useEffect, useState } from 'react'; import { useSelector } from 'react-redux'; import { selectCurrentCandidate } from '../../redux/outstaffingSlice'; import { Link } from 'react-router-dom'; import style from './Calendar.module.css'; import calendarMale from '../../images/medium_male.png'; import rectangle from '../../images/rectangle_secondPage.png'; import CalendarComponent from './CalendarComponent'; import { currentMonth } from './calendarHelper'; const Calendar = () => { const candidateForCalendar = useSelector(selectCurrentCandidate); const [month, setMonth] = useState(''); useEffect(() => { setMonth(currentMonth); }, [month]); const { name, skillsName } = candidateForCalendar; const abbreviatedName = name && name.substring(0, name.lastIndexOf(' ')); return (

Добрый день, Александр !

img

{abbreviatedName}

{skillsName} разработчик

img

{month} : 60 часов

); }; export default Calendar;