import { useState } from 'react' import { useChatWithHistoryContext } from './context' import Sidebar from './sidebar' import AppIcon from '@/app/components/base/app-icon' import { Edit05, Menu01, } from '@/app/components/base/icons/src/vender/line/general' const HeaderInMobile = () => { const { appData, handleNewConversation, } = useChatWithHistoryContext() const [showSidebar, setShowSidebar] = useState(false) return ( <>
setShowSidebar(true)} >
{appData?.site.title}
{ showSidebar && (
setShowSidebar(false)} >
e.stopPropagation()}>
) } ) } export default HeaderInMobile