tag stuff

This commit is contained in:
Carter 2025-01-08 14:45:45 -06:00
parent 67ea4cbfdc
commit 3ce00facd1
23 changed files with 1621 additions and 18 deletions

20
src/common/StatusChip.tsx Normal file
View file

@ -0,0 +1,20 @@
import { Chip, Tooltip } from "@mui/material";
import { getStatusHelper } from "pbHelpers/Status";
interface Props {
status: string;
size?: "small" | "medium";
}
export default function StatusChip(props: Props) {
const { status, size } = props;
const statusHelper = getStatusHelper(status);
const icon = statusHelper.icon;
const description = statusHelper.description;
return icon !== null ? (
<Tooltip title="Your most recent changes will be synced to the device as soon as possible">
<Chip variant="outlined" label={description} icon={icon} size={size} />
</Tooltip>
) : null;
}