IKHSAN
EN Read in EnglishID

homeio

Publik

Fork dari doctor-io/homeio

Branch
main
Commit terakhir
958d74616 Oktober 2026

uptime-card.tsx

Buka raw
import { CalendarClock } from "@/components/icons/platform-icons";
import type { UptimeParts } from "@/modules/system/components/system-widgets/types";
import { WidgetCard } from "@/modules/system/components/system-widgets/widget-card";

type UptimeCardProps = {
  uptime: UptimeParts;
};

export function UptimeCard({ uptime }: UptimeCardProps) {
  return (
    <WidgetCard title="Uptime" icon={CalendarClock}>
      <div className="flex items-baseline gap-1">
        <span className="text-2xl font-bold text-primary font-mono">{uptime.days}</span>
        <span className="text-xs text-muted-foreground mr-2">d</span>
        <span className="text-2xl font-bold text-foreground font-mono">{uptime.hours}</span>
        <span className="text-xs text-muted-foreground mr-2">h</span>
        <span className="text-2xl font-bold text-foreground/70 font-mono">{uptime.minutes}</span>
        <span className="text-xs text-muted-foreground">m</span>
      </div>
    </WidgetCard>
  );
}
byte
985
baris
23
Jenis
tsx
Commit terakhir
16 Oktober 2026