refactor: use stepper

This commit is contained in:
Mauricio Siu
2025-01-18 23:49:47 -06:00
parent e68465f9e6
commit e7329a727f
5 changed files with 454 additions and 358 deletions
@@ -1,13 +1,8 @@
import { CodeEditor } from "@/components/shared/code-editor";
import { Button } from "@/components/ui/button";
import ReactMarkdown from "react-markdown";
import type { StepProps } from "./step-two";
export const StepThree = ({
prevStep,
templateInfo,
onSubmit,
}: StepProps & { onSubmit: () => void }) => {
export const StepThree = ({ templateInfo }: StepProps) => {
return (
<div className="flex flex-col h-full">
<div className="flex-grow">
@@ -93,14 +88,6 @@ export const StepThree = ({
</div>
</div>
</div>
<div className="pt-6">
<div className="flex justify-between">
<Button onClick={prevStep} variant="outline">
Back
</Button>
<Button onClick={onSubmit}>Create</Button>
</div>
</div>
</div>
);
};