import React from "react"; import { useRouter } from "next/router"; import Link from "next/link"; import Card from "@mui/material/Card"; import Typography from "@mui/material/Typography"; import { Box } from "@mui/material"; import Grid from "@mui/material/Grid"; import IconButton from "@mui/material/IconButton"; import Button from "@mui/material/Button"; import TextField from "@mui/material/TextField"; import ClearIcon from "@mui/icons-material/Clear"; import SendIcon from "@mui/icons-material/Send"; import styles from "@/components/Email/LeftSidebar.module.css"; import Badge from "@mui/material/Badge"; import { styled } from "@mui/material/styles"; import Dialog from "@mui/material/Dialog"; import DialogTitle from "@mui/material/DialogTitle"; import CloseIcon from "@mui/icons-material/Close"; import PropTypes from "prop-types"; import dynamic from "next/dynamic"; const RichTextEditor = dynamic(() => import("@mantine/rte"), { ssr: false, }); // Compose Modal const BootstrapDialog = styled(Dialog)(({ theme }) => ({ "& .MuiDialogContent-root": { padding: theme.spacing(2), }, "& .MuiDialogActions-root": { padding: theme.spacing(1), }, })); function BootstrapDialogTitle(props) { const { children, onClose, ...other } = props; return ( {children} {onClose ? ( theme.palette.grey[500], }} > ) : null} ); } BootstrapDialogTitle.propTypes = { children: PropTypes.node, onClose: PropTypes.func.isRequired, }; // End Compose Modal const LeftSidebar = () => { const router = useRouter(); // Compose modal const [open, setOpen] = React.useState(false); const handleClickOpen = () => { setOpen(true); }; const handleClose = () => { setOpen(false); }; const handleSubmit = (event) => { event.preventDefault(); const data = new FormData(event.currentTarget); console.log({ email: data.get("email"), password: data.get("password"), }); }; // End Compose Modal return ( <> mailbox {/* Nav */} labels {/* Nav */} {/* Compose Modal */} New Message ); }; export default LeftSidebar;