diff --git a/frontend/src/components/features/onboarding/information-request-form.tsx b/frontend/src/components/features/onboarding/information-request-form.tsx new file mode 100644 index 0000000000..099838cbfc --- /dev/null +++ b/frontend/src/components/features/onboarding/information-request-form.tsx @@ -0,0 +1,139 @@ +import { useState } from "react"; +import { useTranslation } from "react-i18next"; +import { I18nKey } from "#/i18n/declaration"; +import { BrandButton } from "#/components/features/settings/brand-button"; + +export type RequestType = "saas" | "self-hosted"; + +interface InformationRequestFormProps { + requestType: RequestType; + onBack: () => void; +} + +export function InformationRequestForm({ + requestType, + onBack, +}: InformationRequestFormProps) { + const { t } = useTranslation(); + const [formData, setFormData] = useState({ + name: "", + email: "", + company: "", + message: "", + }); + + const handleInputChange = ( + e: React.ChangeEvent, + ) => { + const { name, value } = e.target; + setFormData((prev) => ({ ...prev, [name]: value })); + }; + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + // TODO: Implement form submission + console.log("Form submitted:", { requestType, ...formData }); + }; + + const title = + requestType === "saas" + ? t(I18nKey.ENTERPRISE$SAAS_TITLE) + : t(I18nKey.ENTERPRISE$SELF_HOSTED_TITLE); + + return ( +
+
+

{title}

+

+ {t(I18nKey.ENTERPRISE$FORM_SUBTITLE)} +

+
+ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +