IKHSAN
EN Read in EnglishID

homeio

Publik

Fork dari doctor-io/homeio

Branch
main
Commit terakhir
958d74616 Oktober 2026

types.ts

Buka raw
import type {
  BatteryMetrics,
  SystemMetricsSnapshot,
} from "@/lib/shared/contracts/system";
import type { NetworkStatus } from "@/lib/shared/contracts/network";

export type Notification = {
  id: string;
  title: string;
  message: string;
  /** Preformatted for display; createdAt is what ordering uses. */
  time: string;
  createdAt: string;
  read: boolean;
};

export type StatusBarProps = {
  onLock?: () => void;
  onLogout?: () => void;
  isLogoutPending?: boolean;
  onOpenNotifications?: () => void;
};

export type StatusPopover = "weather" | "wifi" | "battery" | "tailscale" | "notifications" | "date";

export type WifiPopoverProps = {
  metrics: SystemMetricsSnapshot | undefined;
  networkStatus: NetworkStatus | undefined;
  isDemoMode?: boolean;
  onClose: () => void;
};

export type BatteryPopoverProps = {
  battery: BatteryMetrics | undefined;
  onClose: () => void;
};
byte
897
baris
37
Jenis
ts
Commit terakhir
16 Oktober 2026