Support
++ You can contact our support team by filling out the form + below. +
+ +diff --git a/src/app/(main)/support/layout.tsx b/src/app/(main)/support/layout.tsx new file mode 100644 index 0000000..ab1f142 --- /dev/null +++ b/src/app/(main)/support/layout.tsx @@ -0,0 +1,11 @@ +import Footer from "@/components/Layout/Footer"; +import { PropsWithChildren } from "react"; + +export default function Layout({ children }: PropsWithChildren) { + return ( + <> +
+ You can contact our support team by filling out the form + below. +
+ ++ We’ll use this email address to contact you back if + necessary. +
+ + > + ); +}; + +export default CommonFields; diff --git a/src/features/SupportForm/DMCAForm.tsx b/src/features/SupportForm/DMCAForm.tsx new file mode 100644 index 0000000..5d6af47 --- /dev/null +++ b/src/features/SupportForm/DMCAForm.tsx @@ -0,0 +1,214 @@ +import { zodResolver } from "@hookform/resolvers/zod"; +import { Input, Radio, RadioGroup, Spacer, Textarea } from "@nextui-org/react"; +import clsx from "clsx"; +import { useRef, useState, type FC } from "react"; +import { Controller, Form, useForm } from "react-hook-form"; +import { z } from "zod"; +import CommonFields from "./CommonFields"; +import DMCASwornStatements from "./DMCASwornStatements"; +import SubmitButton from "./SubmitButton"; +import { DMCAFormSchema } from "./SupportFormSchemas"; + +type DMCAFormProps = {}; + +const DMCAForm: FCLicensing & Legal Support
, + }, + [SupportFormType.DMCA]: { + name: "DMCA Takedown Request", + render: () =>
+ Please report bugs at our{" "}
+
+ GitHub repository
+
+ .
+
+ If you’re reporting a security issue, please
+ report it via email to{" "}
+
+ {SUPPORT_EMAIL_ADDRESS}
+
+ .
+