import type { QuizQuestionDate } from "@model/questionTypes/date"; import DateRange from "./DateRange"; import DatePicker from "./DatePicker"; import { Box, Typography, useTheme } from "@mui/material"; type DateProps = { currentQuestion: QuizQuestionDate; }; export const Date = ({ currentQuestion }: DateProps) => { const theme = useTheme(); return ( {currentQuestion.title} {currentQuestion.content.isRange ? ( ) : ( )} ); };