import styles from "./styles.module.scss";
import { useNavigate } from "react-router-dom";
import { useUpdateStep } from "@/components/ChatsPath/hooks/useUpdateStep";
import routes from "@/routes";
import { IAnswer } from "@/components/ChatsPath/data";
import Answers from "@/components/ChatsPath/components/Answers";
import { useTranslations } from "@/hooks/translations";
import { ELocalesPlacement } from "@/locales";

function BelieveInSpirituality() {
  const { translate } = useTranslations(ELocalesPlacement.Chats);
  useUpdateStep(22);
  const navigate = useNavigate();

  const handleNext = () => {
    navigate(routes.client.chatsQuizReadingExperience());
  };

  const answers: IAnswer[] = [
    {
      id: 1,
      value: "yes",
      name: translate("yes"),
      questionId: "believeInSpirituality",
      onClick: handleNext,
    },
    {
      id: 2,
      value: "no",
      name: translate("no"),
      questionId: "believeInSpirituality",
      onClick: handleNext,
    },
    {
      id: 3,
      value: "not_sure",
      name: translate("not_sure"),
      questionId: "believeInSpirituality",
      onClick: handleNext,
    },
  ];

  return (
    <>
      <h2 className={`chats-answers-title ${styles.title}`}>
        {translate("/quiz/believeInSpirituality.title")}
      </h2>
      <Answers answers={answers} />
    </>
  );
}

export default BelieveInSpirituality;
