Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

767 B
Raw Blame
import type * as React from 'react'

import { Card, CardContent } from '#/components/ui/card'

type MetricCardProps = {
  icon: React.ReactNode
  label: string
  value: React.ReactNode
}

export function MetricCard({ icon, label, value }: MetricCardProps) {
  return (
    <Card className="bg-card/70 py-0">
      <CardContent className="flex min-h-20 items-center justify-between gap-4 px-5 py-3">
        <div>
          <p className="text-sm text-muted-foreground">{label}</p>
          <p className="mt-1 text-2xl font-semibold tabular-nums">{value}</p>
        </div>
        <div className="flex size-9 items-center justify-center rounded-md border bg-background/70 text-muted-foreground">
          {icon}
        </div>
      </CardContent>
    </Card>
  )
}