import React, {useState, useEffect} from 'react';
import {
Paper,
IconButton,
Menu,
MenuItem,
Typography,
Grid,
Box,
Link,
Dialog,
DialogTitle,
DialogContent,
DialogContentText,
TextField,
DialogActions,
Button,
FormControl,
InputLabel,
Select,
} from "@material-ui/core";
import { MoreVert as MoreIcon } from "@material-ui/icons";
import {useHistory} from "react-router-dom";
import classnames from "classnames";
// styles
import useStyles from "./styles";
import Widget from "../../components/Widget";
import {
deleteProfileRequest,
} from "../../squeakclient/requests"
import {
reloadRoute,
} from "../../navigation/navigation"
export default function DeleteProfileDialog({
open,
handleClose,
profile,
...props
}) {
var classes = useStyles();
const history = useHistory();
const deleteProfile = (profileId) => {
deleteProfileRequest(profileId, (response) => {
reloadRoute(history);
});
};
function handleSubmit(event) {
event.preventDefault();
console.log( 'profile:', profile);
var squeakAddress = profile.getAddress();
console.log( 'squeakAddress:', squeakAddress);
deleteProfile(squeakAddress);
handleClose();
}
function MakeCancelButton() {
return (
)
}
function DeleteProfileButton() {
return (
)
}
return (
)
}