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 | 1666x 1666x 1666x 3227x 1666x 587x 1079x | import { ListChecks, ListX } from "lucide-react";
import { StatusIndicator } from "../../../../ahuora-design-system/ui/ui-status-indicator";
import {
useCurrentGroupId,
useGroupGraphicsObjects,
} from "../../../../hooks/flowsheetObjects";
export function DefinedStatusIcon({ className }: { className?: string }) {
const groupId = useCurrentGroupId();
const objects = useGroupGraphicsObjects(groupId);
const hasUnderdefined = objects?.some(
(object) => object.simulationObject.unspecifiedProperties.length > 0,
);
if (!hasUnderdefined) {
return <ListChecks className={className} />;
}
return <ListX className={className} color="hsl(var(--destructive))" />;
}
|