This replaces all occurences of "CreateImageWizardV2" with just "CreateImageWizard" as it is the only version now.
16 lines
384 B
TypeScript
16 lines
384 B
TypeScript
import React from 'react';
|
|
|
|
import { useParams } from 'react-router-dom';
|
|
|
|
import CreateImageWizard from './CreateImageWizard';
|
|
import EditImageWizard from './EditImageWizard';
|
|
|
|
const ImageWizard = () => {
|
|
const { composeId } = useParams();
|
|
return composeId ? (
|
|
<EditImageWizard blueprintId={composeId} />
|
|
) : (
|
|
<CreateImageWizard />
|
|
);
|
|
};
|
|
export default ImageWizard;
|