FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
754 B

  1. "use client";
  2. import React, { useState } from 'react';
  3. import ProductionRecordingModal from './ProductionRecordingModal';
  4. import { Box, Button } from '@mui/material';
  5. const ProductionProcess: React.FC = () => {
  6. const [isModalOpen, setIsModalOpen] = useState<boolean>(false);
  7. console.log("prodcution process");
  8. return (
  9. <>
  10. <Button
  11. variant="contained"
  12. color="primary"
  13. size="large"
  14. onClick={() => setIsModalOpen(true)}
  15. sx={{ fontWeight: 500, borderRadius: 2, mb: 2 }}
  16. >
  17. Open Production Recording Modal
  18. </Button>
  19. <ProductionRecordingModal
  20. isOpen={isModalOpen}
  21. onClose={() => setIsModalOpen(false)}
  22. />
  23. </>
  24. );
  25. };
  26. export default ProductionProcess;