import * as React from "react"; import { Card, CardHeader, CardContent, SxProps, Theme, Grid, Modal, Typography, Button, } from "@mui/material"; import { DataGrid, GridColDef } from "@mui/x-data-grid"; import { darken, lighten, styled } from "@mui/material/styles"; import { PROJECT_MODAL_STYLE } from "@/theme/colorConst"; import { useRef, useEffect, useState } from "react"; import Swal from "sweetalert2"; import styledcmp from "styled-components"; const CardWrapper = styledcmp.div` /* Styles for the card when not hovered */ background-color: #f0f0f0, padding: 10px, /* ...other styles... */ &:hover { /* Styles for the card when hovered */ background-color: #c0c0c0, /* ...other hover styles... */ } `; interface CustomModalProps { title?: string; isOpen: boolean; onClose: () => void; modalStyle?: any; } const CustomModal: React.FC = ({ ...props }) => { const ModalContent = () => { return ( //
{props.title ?? "Modal Title"} Modal Content
//
); }; return ( {props.modalStyle ? : } ); }; export default CustomModal;