import { useEffect, useState } from 'react' import { Button } from '@janhq/joi' import { CodeIcon, Paintbrush } from 'lucide-react' import { InfoIcon } from 'lucide-react' import CenterPanelContainer from '@/containers/CenterPanelContainer' import ServerLogs from '@/containers/ServerLogs' import { useLogs } from '@/hooks/useLogs' const FIRST_TIME_VISIT_API_SERVER = 'firstTimeVisitAPIServer' const LocalServerCenterPanel = () => { const { openServerLog, clearServerLog } = useLogs() const [firstTimeVisitAPIServer, setFirstTimeVisitAPIServer] = useState(false) useEffect(() => { if (localStorage.getItem(FIRST_TIME_VISIT_API_SERVER) === null) { setFirstTimeVisitAPIServer(true) } }, [firstTimeVisitAPIServer]) return (

Server Logs

{firstTimeVisitAPIServer ? (
Once you start the server, you cannot chat with your assistant.
) : ( )}
) } export default LocalServerCenterPanel