generated from Luis/nextjs-python-web-template
25 lines
540 B
TypeScript
25 lines
540 B
TypeScript
import { ReactElement, ReactNode } from "react";
|
|
import { UseFormReturn } from "react-hook-form";
|
|
|
|
export type StepId = "template" | "modules" | "config" | "save";
|
|
|
|
export type CreateMachineForm = {
|
|
name: string;
|
|
config: any;
|
|
};
|
|
|
|
export type FormHooks = UseFormReturn<CreateMachineForm>;
|
|
|
|
export type FormStep = {
|
|
id: StepId;
|
|
label: string;
|
|
content: FormStepContent;
|
|
};
|
|
|
|
export interface FormStepContentProps {
|
|
formHooks: FormHooks;
|
|
handleNext: () => void;
|
|
}
|
|
|
|
export type FormStepContent = ReactElement<FormStepContentProps>;
|