import type { FC } from 'react' import React from 'react' import { RiRefreshLine } from '@remixicon/react' import { useTranslation } from 'react-i18next' import type { Theme } from './theme/theme-context' import { CssTransform } from './theme/utils' import Tooltip from '@/app/components/base/tooltip' export type IHeaderProps = { isMobile?: boolean customerIcon?: React.ReactNode title: string theme?: Theme onCreateNewChat?: () => void } const Header: FC = ({ isMobile, customerIcon, title, theme, onCreateNewChat, }) => { const { t } = useTranslation() if (!isMobile) return null return (
{customerIcon}
{title}
{ onCreateNewChat?.() }}>
) } export default React.memo(Header)