import React, { useState } from 'react'; import { Box, Typography, Stack, Button, useTheme, TextField, Checkbox, FormGroup, FormControlLabel } from '@mui/material'; const BusinessHours = ({ currentStepIndex = 0, onNext, onBack }) => { const theme = useTheme(); const [selectedDays, setSelectedDays] = useState([]); const handleCheckboxChange = (day) => { setSelectedDays((prev) => prev.includes(day) ? prev.filter((d) => d !== day) : [...prev, day] ); }; const days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']; return ( Business Hours Enter your business hours to proceed to registration of your own restaurant on this platform {/* Operational Hours Input */} Operational Hours {/* Checkboxes for Days of the Week */} Closed Days {days.map((day) => { const isChecked = selectedDays.includes(day); return ( handleCheckboxChange(day)} sx={{ transform: 'scale(1.5)', color: '#F0EDED', '&.Mui-checked': { color: '#FF914D', }, }} /> } label={ {day} } sx={{ m: 0, width: { xs: '45%', sm: '30%', md: '22%' }, }} /> ); })} {/* Next Button */} {/* زر Back تحت زر Next */} ); }; export default BusinessHours;