import { useTranslations } from "@/hooks/translations";
import styles from "./styles.module.css";
import { ELocalesPlacement } from "@/locales";

interface IPersonalInformationProps {
  birthdate: string;
  zodiacSign: string;
  gender: string;
  birthPlace: string;
}

function PersonalInformation({
  birthdate,
  zodiacSign,
  gender,
  birthPlace,
}: IPersonalInformationProps) {
  const { translate } = useTranslations(ELocalesPlacement.EmailMarketingPalmistryV2);

  return (
    <div
      className={styles["personal-information"]}
    >
      <div className={styles["image-container"]}>
        <img
          src={`/questionnaire-redesign/zodiacs/${gender}/pdf.sex.${zodiacSign?.toUpperCase()}.${gender.toUpperCase()}.webp`}
          alt={`${gender} ${zodiacSign}`}
        />
      </div>
      <div className={styles["text-information"]}>
        <ul>
          <li>
            <h6>{translate("trial-payment.zodiac_sign")}</h6>
            <p>{translate(`trial-payment.zodiac_signs_${zodiacSign?.toLowerCase()}`)}</p>
          </li>
          <li>
            <h6>{translate("trial-payment.gender")}</h6>
            <p>{translate(`trial-payment.${gender?.toLowerCase()}`)}</p>
          </li>
        </ul>
        <ul>
          <li>
            <h6>{translate("trial-payment.date_of_birth")}</h6>
            <p>{birthdate}</p>
          </li>
          <li>
            <h6>{translate("trial-payment.place_of_birth")}</h6>
            <p>{birthPlace}</p>
          </li>
        </ul>
      </div>
    </div>
  );
}

export default PersonalInformation;
