'use client' import React from 'react' import BurgerMenuIcon from '../icons/BurgerMenuIcon' import NotificationBellIcon from '../icons/NotificationBellIcon' import Image from 'next/image' import { ArrowDown2, LogoutCurve, ProfileCircle, Setting2 } from 'iconsax-react' import Dropdown from '../utils/Dropdown' import Seperator from '../utils/Seperator' import Link from 'next/link' import { useParams } from 'next/navigation' import useToggle from '@/hooks/helpers/useToggle' import LogoutPrompt from '@/features/general/LogoutPrompt' type Props = { profileDropState: boolean, toggleProfileDropState: React.MouseEventHandler | undefined menuState: boolean, toggleMenuState: React.MouseEventHandler | undefined searchModalState: boolean, toggleSearchModalState: React.MouseEventHandler | undefined nightModeState: boolean, toggleNightModeState: React.MouseEventHandler | undefined } function TopBar({ profileDropState, toggleProfileDropState, toggleMenuState }: Props) { const params = useParams(); const { name } = params; const { state: logoutModal, toggle: toggleLogoutModal } = useToggle(); return (
{/*
S
*/} {/*
*/}
Profile avatar
{/* */} {/* */}
2
{'user

mail@danakcorp.com

پروفایل
تنظیمات
) } export default TopBar;