'use client' import React from 'react' import Link from 'next/link' import Image from 'next/image' import { usePathname } from 'next/navigation' import { AccountSidebarProps } from '@/app/types' import Logout from './Logout' import noPhoto from '../public/images/noPhoto.png' const AccountSidebar: React.FC = ({ user, navigation, }) => { const pathname = usePathname() if (!user) { return null } const navigationItems = navigation const getAccountTypeStyles = (accountType: string) => { switch (accountType.toLowerCase()) { case 'lite': return 'bg-gray-400 text-white' case 'standart': return 'bg-orange/70 text-white' case 'premium': return 'bg-blue-300' default: return 'bg-gray-200' } } return (
{user.image ? ( Profile ) : ( Фотографии пока что нет )}

{user.name || 'Пользователь'}

ID: {user.uuid || 'Not available'}

{user.account_type && ( {user.account_type.charAt(0).toUpperCase() + user.account_type.slice(1)} )}
) } export default AccountSidebar