2024-05-18 19:36:13 +03:00
|
|
|
import { Button } from "../ui/button";
|
|
|
|
|
import {
|
|
|
|
|
Dialog,
|
|
|
|
|
DialogContent,
|
|
|
|
|
DialogFooter,
|
|
|
|
|
DialogHeader,
|
|
|
|
|
DialogTitle,
|
|
|
|
|
} from "../ui/dialog";
|
|
|
|
|
|
|
|
|
|
type SetPasswordProps = {
|
|
|
|
|
show: boolean;
|
|
|
|
|
onDelete: () => void;
|
|
|
|
|
onCancel: () => void;
|
|
|
|
|
};
|
|
|
|
|
export default function DeleteUserDialog({
|
|
|
|
|
show,
|
|
|
|
|
onDelete,
|
|
|
|
|
onCancel,
|
|
|
|
|
}: SetPasswordProps) {
|
|
|
|
|
return (
|
|
|
|
|
<Dialog open={show} onOpenChange={onCancel}>
|
|
|
|
|
<DialogContent>
|
|
|
|
|
<DialogHeader>
|
|
|
|
|
<DialogTitle>Delete User</DialogTitle>
|
|
|
|
|
</DialogHeader>
|
|
|
|
|
<div>Are you sure?</div>
|
|
|
|
|
<DialogFooter>
|
|
|
|
|
<Button
|
|
|
|
|
className="flex items-center gap-1"
|
2024-10-23 01:07:42 +03:00
|
|
|
aria-label="Confirm delete"
|
2024-05-18 19:36:13 +03:00
|
|
|
variant="destructive"
|
|
|
|
|
size="sm"
|
|
|
|
|
onClick={onDelete}
|
|
|
|
|
>
|
|
|
|
|
Delete
|
|
|
|
|
</Button>
|
|
|
|
|
</DialogFooter>
|
|
|
|
|
</DialogContent>
|
|
|
|
|
</Dialog>
|
|
|
|
|
);
|
|
|
|
|
}
|