/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ import React from "react"; import { TemplateModificationStepOne } from "./TemplateModificationStepOne"; import { TemplateModificationStepThree } from "./TemplateModificationStepThree"; import type { Configuration } from "./EC3/Template"; import { TemplateModificationStepTwo } from "./TemplateModificationStepTwo"; import type { Report } from "@itwin/insights-client"; export interface TemplateModificationStepRendererProps { currentStep: number; updateCurrentStep: (currentStep: number) => void; childTemplate: Configuration; updateChildTemplate: (childTemplate: Configuration) => void; onCancelClick: () => void; onSaveClick: () => Promise; fetchedReports: Report[]; isLoading: boolean; } export const TemplateModificationStepRenderer = (props: TemplateModificationStepRendererProps) => { const renderSteps = () => { switch (props.currentStep) { case 0: { return ; } case 1: { return ( ); } case 2: { return ; } default: return null; } }; return renderSteps(); };