refactor(marketing): Restructure marketing wizard components and improve project organization

- Move all marketing wizard components from `create/_components` to `_components` directory
- Update import paths in `create/page.tsx` to reflect new component locations
- Add countries constant to support country selection in page type configuration
- Minor formatting and cleanup of `.vscode/settings.json`
- Prepare for more modular and consistent component structure in marketing wizard
This commit is contained in:
AmirReza Jamali
2025-11-10 12:41:41 +03:30
parent b8169fbcd9
commit 2b9eaa0495
21 changed files with 312 additions and 56 deletions
@@ -0,0 +1,33 @@
"use client";
import { useForm } from "react-hook-form";
export interface IHeroStepFields {
title: string;
description: string;
buttonText: string;
buttonLink: string;
gifFile: string;
}
const useHeroStepPresenter = () => {
const {
register,
handleSubmit,
formState: { errors },
getValues,
} = useForm<IHeroStepFields>();
const onSubmit = (data: IHeroStepFields) => {
console.log(data);
};
return {
register,
handleSubmit,
errors,
onSubmit,
getValues,
};
};
export default useHeroStepPresenter;