"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 RegisterVolunteerNameFields() {
  const { t } = useTranslation();

  return (
  <div className="grid grid-cols-2 mobilescreen:gap-[0] mobilescreen:grid-cols-1 gap-[100px]">
    <div>
      <p className={FIELD_LABEL_CLASS}>{t("COMMON.FIRSTNAME")}</p>
      <ModalInput
        name="first_name"
        type="text"
        placeholder={t("COMMON.FIRSTNAME")}
        autoComplete="off"
      />
    </div>
    <div>
      <p className={FIELD_LABEL_CLASS}>{t("COMMON.LASTNAME")}</p>
      <ModalInput
        name="last_name"
        type="text"
        placeholder={t("COMMON.LASTNAME")}
        autoComplete="off"
      />
    </div>
  </div>
  );
}
