import React, {useEffect, useState} from 'react' import {useSelector} from 'react-redux' import {Link, useNavigate} from 'react-router-dom' import CalendarComponent from './CalendarComponent' import {currentMonth} from './calendarHelper' import {Footer} from '../Footer/Footer' import {LogoutButton} from "../LogoutButton/LogoutButton"; import {selectCurrentCandidate} from '../../redux/outstaffingSlice' import rectangle from '../../images/rectangle_secondPage.png' import './calendar.scss' import {urlForLocal} from "../../helper"; const Calendar = () => { const candidateForCalendar = useSelector(selectCurrentCandidate); const [month, setMonth] = useState(''); const navigate = useNavigate(); useEffect(() => { setMonth(currentMonth) }, [month]); const {name, skillsName, photo} = candidateForCalendar; const abbreviatedName = name && name.substring(0, name.lastIndexOf(' ')); return (

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

{photo && img}

{abbreviatedName}

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

img
{ navigate('/report/0') }}/>

{month} : 60 часов

) }; export default Calendar