import * as React from 'react';
import {useState} from 'react';
import {FormControl, Select, Stack, Table, TableBody, TableCell, TableHead, TableRow} from "@mui/material";
import Typography from "@mui/material/Typography";
import Paper from "@mui/material/Paper";
import repository from "../app/Repository";
import {Paragraph} from "./styles";
import EditIcon from '@mui/icons-material/Edit';
import CloseIcon from "@mui/icons-material/Close";
import IconButton from "@mui/material/IconButton";
import Container from "@mui/material/Container";
import TextField from "@mui/material/TextField";
import MenuItem from "@mui/material/MenuItem";
const Preferences = (props) => {
return (
);
};
const Notifications = (props) => {
return (
Notifications
);
};
const MinPriority = () => {
const [minPriority, setMinPriority] = useState(repository.getMinPriority());
const handleChange = (ev) => {
setMinPriority(ev.target.value);
repository.setMinPriority(ev.target.value);
}
return (
)
};
const DeleteAfter = () => {
const [deleteAfter, setDeleteAfter] = useState(repository.getDeleteAfter());
const handleChange = (ev) => {
setDeleteAfter(ev.target.value);
repository.setDeleteAfter(ev.target.value);
}
return (
)
};
const PrefGroup = (props) => {
return (
{props.children}
)
};
const Pref = (props) => {
return (
<>
{props.title}
{props.children}
>
);
};
const DefaultServer = (props) => {
return (
Default server
This server is used as a default when adding new topics.
);
};
const Users = (props) => {
return (
Manage users
You may manage users for your protected topics here. Please note that since this is a client
application only, username and password are stored in the browser's local storage.
);
};
const UserTable = () => {
const users = repository.loadUsers();
return (