import React from 'react' import Button from 'components/Button' import Dialog from '@material-ui/core/Dialog' import DialogActions from '@material-ui/core/DialogActions' import DialogContent from '@material-ui/core/DialogContent' import DialogTitle from '@material-ui/core/DialogTitle' import { createStyles, withStyles, WithStyles, Theme, } from '@material-ui/core/styles' import Typography from '@material-ui/core/Typography' const styles = (theme: Theme) => createStyles({ button: { margin: theme.spacing.unit, }, keyValue: { borderRadius: theme.shape.borderRadius, padding: theme.spacing.unit, marginTop: theme.spacing.unit * 2, color: theme.palette.secondary.main, background: theme.palette.grey[200], }, }) type Props = WithStyles & { onDelete: Function keyId: string keyValue: string } export const Delete = withStyles(styles)( ({ classes, onDelete, keyId, keyValue }: Props) => { const [open, setOpen] = React.useState(false) return ( <> Confirm Delete Delete this key?
{keyValue}
) }, )