import * as React from 'react'; import {useState} from 'react'; import {NotificationItem} from "./Notifications"; import theme from "./theme"; import {Link, Rating, useMediaQuery} from "@mui/material"; import TextField from "@mui/material/TextField"; import priority1 from "../img/priority-1.svg"; import priority2 from "../img/priority-2.svg"; import priority3 from "../img/priority-3.svg"; import priority4 from "../img/priority-4.svg"; import priority5 from "../img/priority-5.svg"; import Dialog from "@mui/material/Dialog"; import DialogTitle from "@mui/material/DialogTitle"; import DialogContent from "@mui/material/DialogContent"; import DialogActions from "@mui/material/DialogActions"; import Button from "@mui/material/Button"; import Typography from "@mui/material/Typography"; const priorityFiles = { 1: priority1, 2: priority2, 3: priority3, 4: priority4, 5: priority5 }; function IconContainer(props) { const { value, ...other } = props; return ; } const PrioritySelect = () => { return ( ); } const SendDialog = (props) => { const [topicUrl, setTopicUrl] = useState(props.topicUrl); const [message, setMessage] = useState(props.message || ""); const [title, setTitle] = useState(""); const [tags, setTags] = useState(""); const [click, setClick] = useState(""); const [email, setEmail] = useState(""); const fullScreen = useMediaQuery(theme.breakpoints.down('sm')); const sendButtonEnabled = (() => { return true; })(); const handleSubmit = async () => { props.onSubmit({ baseUrl: "xx", username: username, password: password }) }; return ( Publish notification setTopicUrl(ev.target.value)} type="text" variant="standard" fullWidth required /> setMessage(ev.target.value)} type="text" variant="standard" fullWidth required autoFocus multiline /> setTitle(ev.target.value)} type="text" fullWidth variant="standard" /> setTags(ev.target.value)} type="text" fullWidth variant="standard" /> setClick(ev.target.value)} type="url" fullWidth variant="standard" /> setEmail(ev.target.value)} type="email" fullWidth variant="standard" /> For details on what these fields mean, please check out the {" "}documentation. ); }; export default SendDialog;