Files
danak-console/src/shared/Header.tsx
T
hamid zarghami 4c224236da header
2024-12-26 09:33:37 +03:30

38 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { FC } from 'react'
import Input from '../components/Input'
import { ArrowDown2, Element3, Notification, Wallet } from 'iconsax-react'
import AvatarImage from '../assets/images/Avatar.png'
import { useTranslation } from 'react-i18next'
const Header: FC = () => {
const { t } = useTranslation('global')
return (
<div className='fixed left-4 right-[285px] top-4 h-16 flex items-center px-6 bg-white justify-between rounded-[32px] w-[calc(100%-305px)]'>
<div className='min-w-[270px]'>
<Input
variant='search'
placeholder={t('header.search')}
/>
</div>
<div className='flex gap-6 items-center'>
<Element3 size={18} color='black' />
<Wallet size={18} color='black' />
<Notification size={18} color='black' />
<div className='flex gap-2 items-center'>
<div className='size-7 rounded-full bg-description overflow-hidden'>
<img src={AvatarImage} className='size-full object-cover' />
</div>
<div className='flex gap-1 items-center'>
<div className='text-xs'>مهرداد مظفری</div>
<ArrowDown2 size={14} color='#8C90A3' />
</div>
</div>
</div>
</div>
)
}
export default Header