- {submitted ? (
+
+ {formState === "success" && (
@@ -166,8 +167,10 @@ export default function Index({ data }) {
>
- ) : (
+ )}
+ {formState !== "success" && (
<>
+ {formState === "submitting" && }
@@ -176,11 +179,26 @@ export default function Index({ data }) {
Contact us
+ {formState === "error" && (
+ <>
+
+ There was an error submitting the form, please try again
+ later.
+
+
+ Alternatively, please feel free to email us at{" "}
+
+ quotations@abcprojectdesign.com
+
+ .
+
+ >
+ )}
>