From 2d8f5ef337e0aec6a37cdea979ee346f2b84697c Mon Sep 17 00:00:00 2001 From: karamvir Date: Sun, 6 Aug 2023 10:48:09 -0700 Subject: [PATCH] add confirm update dialog --- .../src/components/config/confirm-update.tsx | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 frontend/src/components/config/confirm-update.tsx diff --git a/frontend/src/components/config/confirm-update.tsx b/frontend/src/components/config/confirm-update.tsx new file mode 100644 index 000000000..62a16779f --- /dev/null +++ b/frontend/src/components/config/confirm-update.tsx @@ -0,0 +1,43 @@ +import { Button } from "@ui/button"; +import { + Dialog, + DialogContent, + DialogFooter, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@ui/dialog"; +import { Save } from "lucide-react"; +import { useState } from "react"; + +interface ConfirmUpdateProps { + content: string; + onConfirm: () => void; +} + +export const ConfirmUpdate = ({ content, onConfirm }: ConfirmUpdateProps) => { + const [open, set] = useState(false); + return ( + + + + + + + Confirm Update + +
+ New configuration to be applied: +
{content}
+
+ + + +
+
+ ); +};