70ee5e33da
- move the management frontend under the wasmeld-console crate - use a persistent Host shell with disposable iframe page documents - version Host/Page postMessage state and command contracts - migrate runtime, service, WIT, invocation, and settings workflows - add Tailwind CSS v4, responsive layouts, and Host-owned dialogs - emit a dependency-free PWA worker with API cache exclusions - remove the superseded root TanStack Start application
7 lines
263 B
TypeScript
7 lines
263 B
TypeScript
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>;
|
|
}
|