IKHSAN
ENID Baca dalam Bahasa Indonesia

homeio

Public

Forked from doctor-io/homeio

Branch
main
Latest commit
958d74616 October 2026

types.ts

Open 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;
};
bytes
897
lines
37
Type
ts
Latest commit
16 October 2026