IKHSAN
EN Read in EnglishID

homeio

Publik

Fork dari doctor-io/homeio

Branch
main
Commit terakhir
958d74616 Oktober 2026

resource-item.tsx

Buka raw
import type { ResourceWidgetItem } from "@/modules/system/components/system-widgets/types";
import { ProgressBar } from "@/modules/system/components/system-widgets/progress-bar";

export function ResourceItem({
  icon: Icon,
  label,
  value,
  progress,
  colorClassName,
}: ResourceWidgetItem) {
  return (
    <div className="flex flex-col gap-1.5">
      <div className="flex items-center justify-between">
        <div className="flex items-center gap-2">
          <div className="flex size-4 items-center justify-center rounded-md bg-white/[0.07]">
            <Icon className="size-2.5 text-muted-foreground/70" />
          </div>
          <span className="text-xs text-muted-foreground">{label}</span>
        </div>
        <span className="text-xs font-mono font-medium text-foreground">{value}</span>
      </div>
      <ProgressBar value={progress} colorClassName={colorClassName} />
    </div>
  );
}
byte
917
baris
26
Jenis
tsx
Commit terakhir
16 Oktober 2026