import { Model } from '@janhq/core' import { Button, Badge } from '@janhq/joi' import { useAtomValue } from 'jotai' import useModels from '@/hooks/useModels' import { activeModelsAtom, downloadedModelsAtom, } from '@/helpers/atoms/Model.atom' const Column = ['Name', 'Engine', ''] const TableActiveModel: React.FC = () => { const { stopModel } = useModels() const activeModels = useAtomValue(activeModelsAtom) const downloadedModels = useAtomValue(downloadedModelsAtom) const models: Model[] = [] activeModels.forEach((m) => { const model = downloadedModels.find((dm) => dm.model === m.model) if (model) { models.push(model) } }) return (
| {col} | ))}||
|---|---|---|
|
{model.model} |
|