import React from 'react'; import { IconButton } from '@mui/material'; import { ChevronLeft, ChevronRight } from '@mui/icons-material'; interface Props { previousQuestion: () => void; nextQuestion: () => void; currentQuestionId: number; questionsLength: number; } const QuestionNavigation: React.FC = ({ previousQuestion, nextQuestion, currentQuestionId, questionsLength }) => { return (
{`Question ${currentQuestionId}/${questionsLength}`}
= questionsLength} color="primary" >
); }; export default QuestionNavigation;