import { useParams } from "react-router-dom" import { SingleColumnPageSkeleton } from "../../../components/common/skeleton" import { SingleColumnPage } from "../../../components/layout/pages" import { useWorkflowExecution } from "../../../hooks/api/workflow-executions" import { useExtension } from "../../../providers/extension-provider" import { WorkflowExecutionGeneralSection } from "./components/workflow-execution-general-section" import { WorkflowExecutionHistorySection } from "./components/workflow-execution-history-section" import { WorkflowExecutionPayloadSection } from "./components/workflow-execution-payload-section" import { WorkflowExecutionTimelineSection } from "./components/workflow-execution-timeline-section" export const ExecutionDetail = () => { const { id } = useParams() const { workflow_execution, isLoading, isError, error } = useWorkflowExecution(id!) const { getWidgets } = useExtension() if (isLoading || !workflow_execution) { return } if (isError) { throw error } return ( ) }