import { useParams } from "react-router-dom" import { CORE_LAYOUT_IDS } from "@medusajs/admin-shared" import { SingleColumnPageSkeleton } from "../../../components/common/skeleton" import { LayoutComposer, detailPageDefaultEntries } from "../../../components/layout-composer" import { useWorkflowExecution } from "../../../hooks/api/workflow-executions" 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!) if (isLoading || !workflow_execution) { return } if (isError) { throw error } return ( {detailPageDefaultEntries(workflow_execution, { metadata: false, permissions: false })} ), }} /> ) }