Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 1330x 1330x 1330x 2850x 1330x 505x 825x | import { ListChecks, ListX } from "lucide-react";
import { StatusIndicator } from "../../../../ahuora-design-system/ui/ui-status-indicator";
import {
useCurrentGroupId,
useGroupGraphicsObjects,
} from "../../../../hooks/flowsheetObjects";
export function DefinedStatusButton() {
const groupId = useCurrentGroupId();
const objects = useGroupGraphicsObjects(groupId);
const hasUnderdefined = objects?.some(
(object) => object.simulationObject.unspecifiedProperties.length > 0,
);
if (!hasUnderdefined) {
return <ListChecks className="icon-large" />;
}
return <ListX className="icon-large" color="hsl(var(--destructive))" />;
}
|