You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
943 B
39 lines
943 B
import { Button } from "@components/UI/Button.tsx";
|
|
import {
|
|
Dialog,
|
|
DialogContent,
|
|
DialogDescription,
|
|
DialogFooter,
|
|
DialogHeader,
|
|
DialogTitle,
|
|
} from "@components/UI/Dialog.tsx";
|
|
|
|
export interface PkiRegenerateDialogProps {
|
|
open: boolean;
|
|
onOpenChange: () => void;
|
|
onSubmit: () => void;
|
|
}
|
|
|
|
export const PkiRegenerateDialog = ({
|
|
open,
|
|
onOpenChange,
|
|
onSubmit,
|
|
}: PkiRegenerateDialogProps): JSX.Element => {
|
|
return (
|
|
<Dialog open={open} onOpenChange={onOpenChange}>
|
|
<DialogContent>
|
|
<DialogHeader>
|
|
<DialogTitle>Regenerate Key pair?</DialogTitle>
|
|
<DialogDescription>
|
|
Are you sure you want to regenerate key pair?
|
|
</DialogDescription>
|
|
</DialogHeader>
|
|
<DialogFooter>
|
|
<Button variant="destructive" onClick={() => onSubmit()}>
|
|
Regenerate
|
|
</Button>
|
|
</DialogFooter>
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
};
|
|
|