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)

{device == 'cuda' && cuda_devices.map((x, i) => (

{x}

))}
) } interface InfoProps { children: React.ReactNode } function Info({ children }: InfoProps) { return (
{children}
) } function ModelIcon({ type }: { type: RunnerType }) { const className = 'h-5 w-5' if (type == 'completion') { return ( ) } else if (type == 'chat') { return ( ) } else if (type == 'index') { return ( ) } }