"use client";

import { useTranslation } from "react-i18next";
import ModalInput from "@/components/ui/ModalInput";
import {
  FIELD_LABEL_CLASS,
} from "./registerVolunteerParts";

/** A field group lifted out of the form of the same family. */
export default function RegisterVolunteerEmailFields() {
  const { t } = useTranslation();

  return (
  <div className="grid grid-cols-2 gap-[100px] mobilescreen:gap-[0px] mobilescreen:grid-cols-1">
    <div>
      <p className={FIELD_LABEL_CLASS}>{t("COMMON.EMAIL")}</p>
      <ModalInput
        name="email"
        type="text"
        placeholder={t("COMMON.EMAIL")}
      />
    </div>
    <div>
      <p className={FIELD_LABEL_CLASS}>{t("COMMON.PASSWORD")}</p>
      <ModalInput
        name="password"
        type="password"
        placeholder={t("COMMON.PASSWORD")}
      />
    </div>
  </div>
  );
}
