import type { FC } from 'react' import React from 'react' import AppIcon from '@/app/components/base/app-icon' import { Bars3Icon, PencilSquareIcon, } from '@heroicons/react/24/solid' export type IHeaderProps = { title: string icon: string icon_background: string isMobile?: boolean onShowSideBar?: () => void onCreateNewChat?: () => void } const Header: FC = ({ title, isMobile, icon, icon_background, onShowSideBar, onCreateNewChat, }) => { return (
{isMobile ? (
onShowSideBar?.()} >
) :
}
{title}
{isMobile ? (
onCreateNewChat?.()} >
) :
}
) } export default React.memo(Header)