feat(marketing): add footer step with form inputs for email, phone, address, tagline, and copyright
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { useForm } from "react-hook-form";
|
||||
|
||||
interface FooterFormValues {
|
||||
email: string;
|
||||
phoneNumber?: string;
|
||||
address?: string;
|
||||
tagline?: string;
|
||||
copyright?: string;
|
||||
}
|
||||
|
||||
const useFooterStepPresenter = () => {
|
||||
const {
|
||||
register,
|
||||
handleSubmit,
|
||||
formState: { errors },
|
||||
} = useForm<FooterFormValues>();
|
||||
|
||||
const onSubmit = (data: FooterFormValues) => {
|
||||
console.log(data);
|
||||
};
|
||||
|
||||
return {
|
||||
register,
|
||||
handleSubmit,
|
||||
onSubmit,
|
||||
errors,
|
||||
};
|
||||
};
|
||||
|
||||
export default useFooterStepPresenter;
|
||||
Reference in New Issue
Block a user