"use client";
import DialogTransition from "@/core/components/DialogTransition";
import { Close } from "@mui/icons-material";
import { Dialog, DialogTitle, IconButton } from "@mui/material";
import CreateForm from "./Form";

const InquiryPrivacyFencingCreate = ({ open, handleClose, mutate }) => {

    return (
        <>
            <Dialog open={open} fullScreen TransitionComponent={DialogTransition}>
                <DialogTitle sx={{ m: 0, p: 2 }} id="create-dialog">
                    ایجاد پاسخ به استعلام
                </DialogTitle>
                <IconButton
                    aria-label="close"
                    onClick={handleClose}
                    sx={{
                        position: "absolute",
                        right: 8,
                        top: 8,
                        color: (theme) => theme.palette.grey[500],
                    }}
                >
                    <Close />
                </IconButton>
                <CreateForm handleClose={handleClose} mutate={mutate} />
            </Dialog>
        </>
    );
};
export default InquiryPrivacyFencingCreate;
