2023-11-30 17:39:57 +00:00
|
|
|
|
import { useState, useEffect } from "react";
|
2023-12-31 02:53:25 +00:00
|
|
|
|
import {
|
|
|
|
|
Box,
|
|
|
|
|
Button,
|
|
|
|
|
Typography,
|
|
|
|
|
useMediaQuery,
|
|
|
|
|
useTheme,
|
|
|
|
|
} from "@mui/material";
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
2023-12-04 11:47:10 +00:00
|
|
|
|
import { useQuizViewStore } from "@root/quizView";
|
2023-12-15 12:12:36 +00:00
|
|
|
|
import { useCurrentQuiz } from "@root/quizes/hooks";
|
2023-12-15 14:12:06 +00:00
|
|
|
|
import { useQuestionsStore } from "@root/questions/store";
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
2023-12-31 02:53:25 +00:00
|
|
|
|
import type {
|
|
|
|
|
AnyTypedQuizQuestion,
|
|
|
|
|
QuizQuestionBase,
|
|
|
|
|
} from "../../model/questionTypes/shared";
|
2023-12-03 10:48:00 +00:00
|
|
|
|
import { getQuestionByContentId } from "@root/questions/actions";
|
|
|
|
|
import { enqueueSnackbar } from "notistack";
|
2023-12-21 11:47:34 +00:00
|
|
|
|
import { NameplateLogoFQ } from "@icons/NameplateLogoFQ";
|
2023-12-31 02:53:25 +00:00
|
|
|
|
import { NameplateLogoFQDark } from "@icons/NameplateLogoFQDark";
|
|
|
|
|
import { modes } from "../../utils/themes/Publication/themePublication";
|
2023-12-23 17:24:32 +00:00
|
|
|
|
import { checkEmptyData } from "../ResultPage/cards/ResultCard";
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
|
|
|
|
type FooterProps = {
|
2023-12-03 10:48:00 +00:00
|
|
|
|
setCurrentQuestion: (step: AnyTypedQuizQuestion) => void;
|
2023-12-13 18:19:12 +00:00
|
|
|
|
question: AnyTypedQuizQuestion;
|
2023-12-15 12:12:36 +00:00
|
|
|
|
setShowContactForm: (show: boolean) => void;
|
|
|
|
|
setShowResultForm: (show: boolean) => void;
|
2023-11-30 17:39:57 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-12-31 02:53:25 +00:00
|
|
|
|
export const Footer = ({
|
|
|
|
|
setCurrentQuestion,
|
|
|
|
|
question,
|
|
|
|
|
setShowContactForm,
|
|
|
|
|
setShowResultForm,
|
|
|
|
|
}: FooterProps) => {
|
|
|
|
|
const [disablePreviousButton, setDisablePreviousButton] =
|
|
|
|
|
useState<boolean>(false);
|
2023-12-05 10:24:31 +00:00
|
|
|
|
const [disableNextButton, setDisableNextButton] = useState<boolean>(false);
|
2023-12-23 15:29:33 +00:00
|
|
|
|
const [stepNumber, setStepNumber] = useState(1);
|
2023-12-15 12:12:36 +00:00
|
|
|
|
const quiz = useCurrentQuiz();
|
2023-12-25 23:46:28 +00:00
|
|
|
|
const mode = modes;
|
2023-11-30 17:39:57 +00:00
|
|
|
|
const { answers } = useQuizViewStore();
|
2023-12-15 14:12:06 +00:00
|
|
|
|
const questions = useQuestionsStore().questions as AnyTypedQuizQuestion[];
|
2023-11-30 17:39:57 +00:00
|
|
|
|
const theme = useTheme();
|
2023-12-27 18:52:05 +00:00
|
|
|
|
const isMobileMini = useMediaQuery(theme.breakpoints.down(382));
|
2023-12-31 02:53:25 +00:00
|
|
|
|
const linear = !questions.find(
|
|
|
|
|
({ content }) => content.rule.parentId === "root",
|
|
|
|
|
);
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
2023-12-05 10:24:31 +00:00
|
|
|
|
useEffect(() => {
|
|
|
|
|
// Логика для аргумента disabled у кнопки "Назад"
|
2023-12-06 12:09:25 +00:00
|
|
|
|
if (linear) {
|
|
|
|
|
const questionIndex = questions.findIndex(({ id }) => id === question.id);
|
|
|
|
|
|
|
|
|
|
const previousQuestion = questions[questionIndex - 1];
|
|
|
|
|
|
|
|
|
|
if (previousQuestion) {
|
|
|
|
|
setDisablePreviousButton(false);
|
|
|
|
|
} else {
|
|
|
|
|
setDisablePreviousButton(true);
|
|
|
|
|
}
|
2023-12-05 10:24:31 +00:00
|
|
|
|
} else {
|
2023-12-06 12:09:25 +00:00
|
|
|
|
if (question?.content.rule.parentId === "root") {
|
|
|
|
|
setDisablePreviousButton(true);
|
|
|
|
|
} else {
|
|
|
|
|
setDisablePreviousButton(false);
|
|
|
|
|
}
|
2023-12-05 10:24:31 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Логика для аргумента disabled у кнопки "Далее"
|
2023-12-31 02:53:25 +00:00
|
|
|
|
const answer = answers.find(
|
|
|
|
|
({ questionId }) => questionId === question.content.id,
|
|
|
|
|
);
|
2023-12-06 15:30:46 +00:00
|
|
|
|
|
2023-12-13 18:19:12 +00:00
|
|
|
|
if ("required" in question.content && question.content.required && answer) {
|
|
|
|
|
setDisableNextButton(false);
|
2023-12-06 15:30:46 +00:00
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-31 02:53:25 +00:00
|
|
|
|
if (
|
|
|
|
|
"required" in question.content &&
|
|
|
|
|
question.content.required &&
|
|
|
|
|
!answer
|
|
|
|
|
) {
|
2023-12-13 18:19:12 +00:00
|
|
|
|
setDisableNextButton(true);
|
2023-12-13 12:15:44 +00:00
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-06 12:09:25 +00:00
|
|
|
|
if (linear) {
|
2023-12-15 12:12:36 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
2023-12-06 12:09:25 +00:00
|
|
|
|
|
2023-12-15 12:12:36 +00:00
|
|
|
|
const nextQuestionId = getNextQuestionId();
|
|
|
|
|
if (nextQuestionId) {
|
|
|
|
|
setDisableNextButton(false);
|
2023-12-06 12:09:25 +00:00
|
|
|
|
} else {
|
2023-12-31 02:53:25 +00:00
|
|
|
|
const nextQuestion = getQuestionByContentId(
|
|
|
|
|
question.content.rule.default,
|
|
|
|
|
);
|
2023-12-15 12:12:36 +00:00
|
|
|
|
|
|
|
|
|
if (nextQuestion?.type) {
|
2023-12-06 12:09:25 +00:00
|
|
|
|
setDisableNextButton(false);
|
|
|
|
|
}
|
2023-12-05 10:24:31 +00:00
|
|
|
|
}
|
2023-12-06 15:30:46 +00:00
|
|
|
|
}, [question, answers]);
|
2023-12-05 10:24:31 +00:00
|
|
|
|
|
2023-12-16 23:10:24 +00:00
|
|
|
|
const showResult = (nextQuestion) => {
|
2024-01-05 12:00:36 +00:00
|
|
|
|
console.log("Следующий результат будет вот такой" , nextQuestion)
|
2023-12-23 17:24:32 +00:00
|
|
|
|
if (nextQuestion && quiz?.config.resultInfo.when === "email") {
|
2023-12-16 09:36:35 +00:00
|
|
|
|
setShowContactForm(true);
|
2023-12-23 17:24:32 +00:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-31 02:53:25 +00:00
|
|
|
|
const isEmpty = checkEmptyData({ resultData: nextQuestion });
|
2023-12-23 17:24:32 +00:00
|
|
|
|
if (nextQuestion) {
|
|
|
|
|
if (nextQuestion && quiz?.config.resultInfo.when === "before") {
|
|
|
|
|
if (isEmpty) {
|
|
|
|
|
setShowContactForm(true); //до+пустая = кидать на ФК
|
|
|
|
|
} else {
|
|
|
|
|
setShowResultForm(true); //до+заполнена = показать
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-12-31 02:53:25 +00:00
|
|
|
|
if (
|
|
|
|
|
nextQuestion &&
|
|
|
|
|
(quiz?.config.resultInfo.when === "after" ||
|
|
|
|
|
quiz?.config.resultInfo.when === "email")
|
|
|
|
|
) {
|
2023-12-23 17:24:32 +00:00
|
|
|
|
if (isEmpty) {
|
|
|
|
|
setShowContactForm(true); //после+пустая
|
|
|
|
|
} else {
|
|
|
|
|
setShowContactForm(true); //после+заполнена = показать ФК
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-12-15 12:12:36 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2023-12-05 10:24:31 +00:00
|
|
|
|
const getNextQuestionId = () => {
|
2023-12-31 02:53:25 +00:00
|
|
|
|
console.log("net");
|
|
|
|
|
console.log(question);
|
2023-12-27 17:26:55 +00:00
|
|
|
|
let readyBeNextQuestion = "";
|
|
|
|
|
|
|
|
|
|
//вопрос обязателен, анализируем ответ и условия ветвления
|
2023-12-05 10:24:31 +00:00
|
|
|
|
if (answers.length) {
|
2023-12-31 02:53:25 +00:00
|
|
|
|
const answer = answers.find(
|
|
|
|
|
({ questionId }) => questionId === question.content.id,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
(question as QuizQuestionBase).content.rule.main.forEach(
|
|
|
|
|
({ next, rules }) => {
|
|
|
|
|
let longerArray = Math.max(
|
|
|
|
|
rules[0].answers.length,
|
|
|
|
|
answer?.answer && Array.isArray(answer?.answer)
|
|
|
|
|
? answer?.answer.length
|
|
|
|
|
: [answer?.answer].length,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
for (
|
|
|
|
|
var i = 0;
|
|
|
|
|
i < longerArray;
|
|
|
|
|
i++ // Цикл по всем элементам бОльшего массива
|
|
|
|
|
) {
|
|
|
|
|
if (Array.isArray(answer?.answer)) {
|
|
|
|
|
if (
|
|
|
|
|
answer?.answer.find((item) =>
|
|
|
|
|
String(item === rules[0].answers[i]),
|
|
|
|
|
)
|
|
|
|
|
) {
|
|
|
|
|
readyBeNextQuestion = next; // Если хоть один элемент отличается, массивы не равны
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return;
|
2023-12-14 14:05:19 +00:00
|
|
|
|
}
|
2023-12-16 23:10:24 +00:00
|
|
|
|
|
2023-12-31 02:53:25 +00:00
|
|
|
|
if (String(rules[0].answers[i]) === answer?.answer) {
|
|
|
|
|
readyBeNextQuestion = next; // Если хоть один элемент отличается, массивы не равны
|
|
|
|
|
}
|
2023-12-05 10:24:31 +00:00
|
|
|
|
}
|
2023-12-31 02:53:25 +00:00
|
|
|
|
},
|
|
|
|
|
);
|
2023-12-05 10:24:31 +00:00
|
|
|
|
|
2023-12-27 17:26:55 +00:00
|
|
|
|
if (readyBeNextQuestion) return readyBeNextQuestion;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-31 02:53:25 +00:00
|
|
|
|
if (!question.required) {
|
|
|
|
|
//вопрос не обязателен и не нашли совпадений между ответами и условиями ветвления
|
|
|
|
|
console.log("вопрос не обязателен ищем дальше");
|
|
|
|
|
const defaultQ = question.content.rule.default;
|
|
|
|
|
if (defaultQ.length > 1 && defaultQ !== " ") return defaultQ;
|
2023-12-27 19:46:40 +00:00
|
|
|
|
//Вопросы типа страница, ползунок, своё поле для ввода и дата не могут иметь больше 1 ребёнка. Пользователь не может настроить там дефолт
|
|
|
|
|
//Кинуть на ребёнка надо даже если там нет дефолта
|
|
|
|
|
if (
|
2023-12-31 02:53:25 +00:00
|
|
|
|
(question?.type === "date" ||
|
|
|
|
|
question?.type === "text" ||
|
|
|
|
|
question?.type === "number" ||
|
|
|
|
|
question?.type === "page") &&
|
|
|
|
|
question.content.rule.children.length === 1
|
|
|
|
|
)
|
|
|
|
|
return question.content.rule.children[0];
|
2023-12-05 10:24:31 +00:00
|
|
|
|
}
|
2023-12-31 02:53:25 +00:00
|
|
|
|
//ничё не нашли, ищем резулт
|
|
|
|
|
console.log("ничё не нашли, ищем резулт ");
|
|
|
|
|
return questions.find((q) => {
|
|
|
|
|
console.log('q.type === "result"', q.type === "result");
|
|
|
|
|
console.log(
|
|
|
|
|
"q.content.rule.parentId === question.content.id",
|
|
|
|
|
q.content.rule.parentId === question.content.id,
|
|
|
|
|
);
|
|
|
|
|
return (
|
|
|
|
|
q.type === "result" && q.content.rule.parentId === question.content.id
|
|
|
|
|
);
|
|
|
|
|
})?.content.id;
|
2023-12-05 10:24:31 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-12-03 10:48:00 +00:00
|
|
|
|
const followPreviousStep = () => {
|
2023-12-06 12:09:25 +00:00
|
|
|
|
if (linear) {
|
2023-12-31 02:53:25 +00:00
|
|
|
|
setStepNumber((q) => q - 1);
|
2023-12-06 12:09:25 +00:00
|
|
|
|
const questionIndex = questions.findIndex(({ id }) => id === question.id);
|
|
|
|
|
|
|
|
|
|
const previousQuestion = questions[questionIndex - 1];
|
|
|
|
|
|
|
|
|
|
if (previousQuestion) {
|
|
|
|
|
setCurrentQuestion(previousQuestion);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-03 10:48:00 +00:00
|
|
|
|
if (question?.content.rule.parentId !== "root") {
|
2023-12-04 11:47:10 +00:00
|
|
|
|
const parent = getQuestionByContentId(question?.content.rule.parentId);
|
2023-12-05 10:24:31 +00:00
|
|
|
|
if (parent?.type) {
|
2023-12-04 11:47:10 +00:00
|
|
|
|
setCurrentQuestion(parent);
|
2023-12-03 10:48:00 +00:00
|
|
|
|
} else {
|
2023-12-04 11:47:10 +00:00
|
|
|
|
enqueueSnackbar("не могу получить предыдущий вопрос");
|
2023-12-03 10:48:00 +00:00
|
|
|
|
}
|
2023-12-05 10:33:01 +00:00
|
|
|
|
} else {
|
|
|
|
|
enqueueSnackbar("вы находитесь на первом вопросе");
|
2023-12-05 10:24:31 +00:00
|
|
|
|
}
|
2023-12-05 10:33:01 +00:00
|
|
|
|
};
|
2023-12-05 10:24:31 +00:00
|
|
|
|
|
2023-12-05 10:33:01 +00:00
|
|
|
|
const followNextStep = () => {
|
2024-01-05 12:00:36 +00:00
|
|
|
|
console.log(" Я понимаю что нахожусь в линейном опроснике" + linear)
|
2023-12-06 12:09:25 +00:00
|
|
|
|
if (linear) {
|
2023-12-31 02:53:25 +00:00
|
|
|
|
setStepNumber((q) => q + 1);
|
2023-12-06 12:09:25 +00:00
|
|
|
|
const questionIndex = questions.findIndex(({ id }) => id === question.id);
|
|
|
|
|
const nextQuestion = questions[questionIndex + 1];
|
|
|
|
|
|
2023-12-15 14:12:06 +00:00
|
|
|
|
if (nextQuestion && nextQuestion.type !== "result") {
|
2023-12-06 12:09:25 +00:00
|
|
|
|
setCurrentQuestion(nextQuestion);
|
2023-12-15 12:12:36 +00:00
|
|
|
|
} else {
|
2023-12-16 20:17:42 +00:00
|
|
|
|
showResult(nextQuestion);
|
2023-12-06 12:09:25 +00:00
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-05 10:24:31 +00:00
|
|
|
|
const nextQuestionId = getNextQuestionId();
|
|
|
|
|
|
2023-12-31 02:53:25 +00:00
|
|
|
|
console.log(nextQuestionId);
|
2023-12-05 10:24:31 +00:00
|
|
|
|
if (nextQuestionId) {
|
|
|
|
|
const nextQuestion = getQuestionByContentId(nextQuestionId);
|
2023-12-31 02:53:25 +00:00
|
|
|
|
console.log(nextQuestion);
|
2023-12-05 10:24:31 +00:00
|
|
|
|
|
2023-12-27 17:26:55 +00:00
|
|
|
|
if (nextQuestion?.type && nextQuestion.type === "result") {
|
|
|
|
|
showResult(nextQuestion);
|
2023-12-05 10:24:31 +00:00
|
|
|
|
} else {
|
|
|
|
|
setCurrentQuestion(nextQuestion);
|
|
|
|
|
}
|
2023-12-27 17:26:55 +00:00
|
|
|
|
} else {
|
|
|
|
|
enqueueSnackbar("не могу получить последующий вопрос");
|
2023-12-03 10:48:00 +00:00
|
|
|
|
}
|
|
|
|
|
};
|
2023-11-30 17:39:57 +00:00
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
2023-12-16 23:10:24 +00:00
|
|
|
|
position: "relative",
|
2023-11-30 17:39:57 +00:00
|
|
|
|
padding: "15px 0",
|
|
|
|
|
borderTop: `1px solid ${theme.palette.grey[400]}`,
|
2023-12-31 02:53:25 +00:00
|
|
|
|
height: "75px",
|
2023-12-21 11:47:34 +00:00
|
|
|
|
|
2023-12-31 02:53:25 +00:00
|
|
|
|
display: "flex",
|
2023-11-30 17:39:57 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
width: "100%",
|
|
|
|
|
maxWidth: "1000px",
|
|
|
|
|
padding: "0 10px",
|
|
|
|
|
margin: "0 auto",
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
gap: "10px",
|
|
|
|
|
}}
|
|
|
|
|
>
|
2023-12-27 18:52:05 +00:00
|
|
|
|
{/*{mode[quiz.config.theme] ? (*/}
|
|
|
|
|
{/* <NameplateLogoFQ style={{ fontSize: "34px", width:"200px", height:"auto" }} />*/}
|
|
|
|
|
{/*):(*/}
|
|
|
|
|
{/* <NameplateLogoFQDark style={{ fontSize: "34px", width:"200px", height:"auto" }} />*/}
|
|
|
|
|
{/*)}*/}
|
2023-12-31 02:53:25 +00:00
|
|
|
|
{linear && (
|
2023-12-23 15:29:33 +00:00
|
|
|
|
<>
|
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
gap: "10px",
|
|
|
|
|
marginRight: "auto",
|
2023-12-27 18:52:05 +00:00
|
|
|
|
color: theme.palette.text.primary,
|
2023-12-23 15:29:33 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Typography>Шаг</Typography>
|
|
|
|
|
<Typography
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
justifyContent: "center",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
borderRadius: "50%",
|
|
|
|
|
width: "30px",
|
|
|
|
|
height: "30px",
|
|
|
|
|
color: "#FFF",
|
2023-12-27 18:52:05 +00:00
|
|
|
|
background: theme.palette.primary.main,
|
2023-12-23 15:29:33 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{stepNumber}
|
|
|
|
|
</Typography>
|
|
|
|
|
<Typography>Из</Typography>
|
|
|
|
|
<Typography sx={{ fontWeight: "bold" }}>
|
2023-12-31 02:53:25 +00:00
|
|
|
|
{questions.filter((q) => q.type !== "result").length}
|
2023-12-23 15:29:33 +00:00
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
</>
|
2023-12-31 02:53:25 +00:00
|
|
|
|
)}
|
2023-12-25 23:46:28 +00:00
|
|
|
|
|
2023-11-30 17:39:57 +00:00
|
|
|
|
<Box
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
gap: "10px",
|
|
|
|
|
marginRight: "auto",
|
2023-12-21 00:08:58 +00:00
|
|
|
|
// color: theme.palette.grey1.main,
|
2023-11-30 17:39:57 +00:00
|
|
|
|
}}
|
|
|
|
|
>
|
2023-12-03 10:48:00 +00:00
|
|
|
|
{/* <Typography>Шаг</Typography>
|
2023-11-30 17:39:57 +00:00
|
|
|
|
<Typography
|
|
|
|
|
sx={{
|
|
|
|
|
display: "flex",
|
|
|
|
|
justifyContent: "center",
|
|
|
|
|
alignItems: "center",
|
|
|
|
|
fontWeight: "bold",
|
|
|
|
|
borderRadius: "50%",
|
|
|
|
|
width: "30px",
|
|
|
|
|
height: "30px",
|
|
|
|
|
color: "#FFF",
|
|
|
|
|
background: theme.palette.brightPurple.main,
|
|
|
|
|
}}
|
|
|
|
|
>
|
2023-12-03 10:48:00 +00:00
|
|
|
|
{stepNumber} */}
|
|
|
|
|
{/* </Typography> */}
|
|
|
|
|
{/* <Typography>Из</Typography>
|
2023-11-30 17:39:57 +00:00
|
|
|
|
<Typography sx={{ fontWeight: "bold" }}>
|
|
|
|
|
{questions.length}
|
2023-12-03 10:48:00 +00:00
|
|
|
|
</Typography> */}
|
2023-11-30 17:39:57 +00:00
|
|
|
|
</Box>
|
|
|
|
|
<Button
|
2023-12-05 10:24:31 +00:00
|
|
|
|
disabled={disablePreviousButton}
|
2023-11-30 17:39:57 +00:00
|
|
|
|
variant="contained"
|
2023-12-31 02:53:25 +00:00
|
|
|
|
sx={{ fontSize: "16px", padding: "10px 15px" }}
|
2023-11-30 17:39:57 +00:00
|
|
|
|
onClick={followPreviousStep}
|
|
|
|
|
>
|
2023-12-31 02:53:25 +00:00
|
|
|
|
{isMobileMini ? "←" : "← Назад"}
|
2023-11-30 17:39:57 +00:00
|
|
|
|
</Button>
|
|
|
|
|
<Button
|
2023-12-05 10:24:31 +00:00
|
|
|
|
disabled={disableNextButton}
|
2023-11-30 17:39:57 +00:00
|
|
|
|
variant="contained"
|
|
|
|
|
sx={{ fontSize: "16px", padding: "10px 15px" }}
|
|
|
|
|
onClick={followNextStep}
|
|
|
|
|
>
|
|
|
|
|
Далее →
|
|
|
|
|
</Button>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
};
|