import React from "react"; import { useDispatch } from "react-redux"; import { Link } from "react-router-dom"; import { setToggleTab } from "@redux/projectsTrackerSlice"; import { Navigation } from "@components/Navigation/Navigation"; import { ProfileBreadcrumbs } from "@components/ProfileBreadcrumbs/ProfileBreadcrumbs"; import { ProfileHeader } from "@components/ProfileHeader/ProfileHeader"; import arrow from "assets/icons/arrows/arrowCalendar.png"; import link from "assets/icons/link.svg"; import project from "assets/icons/trackerProject.svg"; import tasks from "assets/icons/trackerTasks.svg"; import archive from "assets/images/archiveIcon.png"; import "./statistics.scss"; const Statistics = () => { const dispatch = useDispatch(); const toggleTabs = (index) => { dispatch(setToggleTab(index)); }; return (
Проекты
toggleTabs(2)} >Все мои задачи
toggleTabs(3)} >Архив