refactor(research): update agents component to accept API data as props
This commit is contained in:
parent
dbdcb9211a
commit
5b0df7fa8b
1 changed files with 1 additions and 8 deletions
|
|
@ -2,14 +2,7 @@ import { IconBook, IconDatabase, IconCircleCheck, IconSparkles } from "@tabler/i
|
||||||
import { Badge } from "@/components/ui/badge"
|
import { Badge } from "@/components/ui/badge"
|
||||||
import { Switch } from "@/components/ui/switch"
|
import { Switch } from "@/components/ui/switch"
|
||||||
import { cn } from "@/lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
import { ResearchAgent } from "@/api/research"
|
||||||
interface ResearchAgent {
|
|
||||||
id: string
|
|
||||||
name: string
|
|
||||||
active: boolean
|
|
||||||
progress: number
|
|
||||||
ram: string
|
|
||||||
}
|
|
||||||
|
|
||||||
interface ResearchAgentsProps {
|
interface ResearchAgentsProps {
|
||||||
agents: ResearchAgent[]
|
agents: ResearchAgent[]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue