import { EngineManager } from '@janhq/core' import { useAtomValue, useSetAtom } from 'jotai' import ModalTroubleShooting, { modalTroubleShootingAtom, } from '@/containers/ModalTroubleShoot' import { MainViewState } from '@/constants/screens' import { loadModelErrorAtom } from '@/hooks/useActiveModel' import { mainViewStateAtom } from '@/helpers/atoms/App.atom' import { selectedSettingAtom } from '@/helpers/atoms/Setting.atom' import { activeThreadAtom } from '@/helpers/atoms/Thread.atom' const LoadModelError = () => { const setModalTroubleShooting = useSetAtom(modalTroubleShootingAtom) const loadModelError = useAtomValue(loadModelErrorAtom) const setMainState = useSetAtom(mainViewStateAtom) const activeThread = useAtomValue(activeThreadAtom) const setSelectedSettingScreen = useSetAtom(selectedSettingAtom) const PORT_NOT_AVAILABLE = 'PORT_NOT_AVAILABLE' return (
Port 3928 is currently unavailable. Check for conflicting apps, or access setModalTroubleShooting(true)} > troubleshooting assistance for further support.
Model is currently unavailable. Please switch to a different model or install the{' '} {' '} to continue using it.
Jan’s in beta. Access setModalTroubleShooting(true)} > troubleshooting assistance now.