import { STATUS_META, type ServiceStatus } from "../../lib/model";

export function StatusBadge(props: { status: ServiceStatus }) {
  const meta = () => STATUS_META[props.status];
  return <span class={`status-badge ${meta().className}`}>{meta().label}</span>;
}
