mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-04-07 02:53:38 +00:00
23 lines
579 B
TypeScript
23 lines
579 B
TypeScript
import type React from "react";
|
|
import { Chip } from "@mui/material";
|
|
import type { BuildStatus } from "api/types/BuildStatus";
|
|
import { StatusColors } from "theme/status/StatusColors";
|
|
|
|
interface StatusCellProps {
|
|
status: BuildStatus;
|
|
}
|
|
|
|
export default function StatusCell({ status }: StatusCellProps): React.JSX.Element {
|
|
return (
|
|
<Chip
|
|
label={status}
|
|
size="small"
|
|
sx={{
|
|
backgroundColor: StatusColors[status],
|
|
color: "#fff",
|
|
fontWeight: 500,
|
|
}}
|
|
/>
|
|
);
|
|
}
|