import React, { useState } from 'react'; import { Box, Typography, Stack, Button, useTheme, TextField, Radio, RadioGroup, FormControlLabel, } from '@mui/material'; import ConfirmationDialog from './ConfirmationDialog'; // ✅ استدعاء المودال المنفصل const Expansion = ({ currentStepIndex = 0, onNext, onBack }) => { const theme = useTheme(); const [openModal, setOpenModal] = useState(false); const handleOpenModal = () => setOpenModal(true); const handleCloseModal = () => setOpenModal(false); const handleConfirmNext = () => { handleCloseModal(); onNext(); }; return ( Expansion & Future Cooperation Enter your basic information to proceed to registration of your own restaurant on this platform Hosting Multiple Cloud Kitchens } label="Yes" /> } label="No" /> {/* Inputs (Restaurant Name, Type, Address, City, Postal Code) */} {[ { label: 'Future Kitchen Plans', placeholder: '20' }, ].map((field, index) => ( {field.label} ))} Partnership & Support } label="Yes" /> } label="No" /> {/* زر Back تحت زر Next */} {/* ✅ Confirmation Modal */} ); }; export default Expansion;