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 23 24 25 | import { ErrorOutlineRounded } from "@mui/icons-material"; import handleTaskTypeOptions from "../../../utils/conditionals/handleTaskTypeOptions"; import useCurrentStep from "../../../hooks/playbooks/step/useCurrentStep"; import { extractSource } from "../../../utils/playbook/extractData"; import { useSelector } from "react-redux"; import { additionalStateSelector } from "../../../store/features/drawers/selectors"; function ParentStepNotConfigured() { const { source } = useSelector(additionalStateSelector); const sourceId = extractSource(source); const [parentStep] = useCurrentStep(sourceId); const taskTypeOptions = handleTaskTypeOptions(parentStep); Iif (taskTypeOptions.length > 0) return; return ( <div className="bg-red-50 p-2 flex items-center gap-1 rounded flex-wrap"> <ErrorOutlineRounded color="error" component={"svg"} fontSize="inherit" /> <p className="text-xs">You have not configured the parent step yet.</p> </div> ); } export default ParentStepNotConfigured; |