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 26 27 28 29 30 31 | import useCurrentTask from "../../../../hooks/playbooks/task/useCurrentTask"; import { ResultTypeTypes } from "../../../../utils/conditionals/resultTypeOptions"; import ResultTransformer from "../transformer/ResultTransformer"; import BulkTaskSelector from "./bulkTasks/BulkTaskSelector"; import ComparisonSelector from "./comparison/ComparisonSelector"; type TaskConfigurationPropTypes = { id: string; }; function TaskConfiguration({ id }: TaskConfigurationPropTypes) { const [task] = useCurrentTask(id); return ( <div> <div className="mt-2 text-sm text-violet-500"> <b>Configuration</b> </div> <div className="flex flex-col gap-2 mt-2"> <BulkTaskSelector id={id} /> {task?.ui_requirement.resultType === ResultTypeTypes.TIMESERIES && ( <ComparisonSelector id={id} /> )} <ResultTransformer id={id} /> </div> </div> ); } export default TaskConfiguration; |