import type { Component } from "solid-js"; type Props = { state: string; label?: string }; // StatusBadge renders a state pill. Background color is a CSS custom // property on the :root so themes can override centrally. const StatusBadge: Component = (props) => { return ( {props.label ?? props.state} ); }; export default StatusBadge;