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

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

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

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

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

export default PsychicReading;
