import { PrimaryButton } from '../../../components/button/PrimaryButton'; import { ReverseButton } from '../../../components/button/ReverseButton'; import { useAppDispatch, useAppSelector } from '../../../redux/hooks'; import { logout } from '../../../redux/slices/auth'; import { OpenBook, Clipboard, Cup } from '../../../assets/icons/account'; import { FC } from 'react'; interface StatisticItemProps { icon: string; title: string; count?: number; countLastWeek?: number; } const StatisticItem: FC = ({ title, icon, count = 0, countLastWeek = 0, }) => { return (
{title}
{count}
{'За 7 дней '} {countLastWeek}
); }; const RightPanel = () => { const dispatch = useAppDispatch(); const name = useAppSelector((state) => state.auth.username); const email = useAppSelector((state) => state.auth.email); return (
{name}
{email}
Топ 50%
{}} text="Редактировать" className="w-full" />
{'Статистика решений'}
{'Статистика созданий'}
{ dispatch(logout()); }} text="Выход" color="error" />
); }; export default RightPanel;