import { ScrollArea, Progress, Badge, Button } from '@janhq/uikit' import { useAtomValue } from 'jotai' import { useActiveModel } from '@/hooks/useActiveModel' import { toGibibytes } from '@/utils/converter' import { cpuUsageAtom, totalRamAtom, usedRamAtom, } from '@/helpers/atoms/SystemBar.atom' const Column = ['Name', 'Model ID', 'Size', 'Version', 'Action'] export default function SystemMonitorScreen() { const totalRam = useAtomValue(totalRamAtom) const usedRam = useAtomValue(usedRamAtom) const cpuUsage = useAtomValue(cpuUsageAtom) const { activeModel, stateModel, stopModel } = useActiveModel() return (
| {col} | ) })}||||
|---|---|---|---|---|
| {activeModel.name} | {activeModel.id} |
|
|