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 | import { SOURCES } from "../../../../constants/index.ts"; import HandleDocumentationOutputs from "../../outputs/HandleDocumentationOutputs.tsx"; import PlayBookRunMetricGraph from "../../outputs/PlayBookRunMetricGraph.js"; import HandleSmtpOutput from "../../outputs/HandleSmtpOutput.tsx"; import useCurrentTask from "../../../../hooks/playbooks/task/useCurrentTask.ts"; function HandleUnkownOutput({ taskId, error }) { const [task] = useCurrentTask(taskId); switch (task?.source) { case SOURCES.TEXT: return <HandleDocumentationOutputs taskId={taskId} />; case SOURCES.SMTP: return <HandleSmtpOutput />; default: return ( <PlayBookRunMetricGraph error={error} title={ error ? "Error from Source" : "No data available for this step" } result={null} timestamp={undefined} /> ); } } export default HandleUnkownOutput; |