import type { ModuleStatus } from "@platform-types";
import { moduleStatusLabel, moduleStatusTone } from "@platform-shared";

interface StatusPillProps {
  status: ModuleStatus;
}

export function StatusPill({ status }: StatusPillProps) {
  return <span className={`status-pill ${moduleStatusTone(status)}`}>{moduleStatusLabel(status)}</span>;
}

