import {
CardTitle,
CardHeader,
CardContent,
Card,
CardDescription
} from '@/components/ui/card'
import { HealthInfo } from '@/lib/hooks/use-health'
type RunnerType = 'completion' | 'chat' | 'index'
interface RunnerCardProps {
source: string
name: string
type: RunnerType
health: HealthInfo
}
export default function RunnerCard({
source,
name,
type,
health
}: RunnerCardProps) {
const { device, cuda_devices } = health
return (
{name} {source}
{health.cpu_info} ({health.cpu_count} cores)
{x}