From ca89bce1abe8d017a7ec5bff1de2cc9d80859130 Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:10:33 +0330 Subject: [PATCH] Import source: src/components/common/confirm-dialog Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- src/components/common/confirm-dialog.tsx | 65 ++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/components/common/confirm-dialog.tsx diff --git a/src/components/common/confirm-dialog.tsx b/src/components/common/confirm-dialog.tsx new file mode 100644 index 0000000..c023ee7 --- /dev/null +++ b/src/components/common/confirm-dialog.tsx @@ -0,0 +1,65 @@ +"use client"; + +import { useState } from "react"; +import { AlertTriangle } from "lucide-react"; +import { + Dialog, + DialogContent, + DialogDescription, + DialogHeader, + DialogTitle, + DialogTrigger, +} from "@/components/ui/dialog"; +import { Button } from "@/components/ui/button"; +import { Input } from "@/components/ui/input"; + +export function DangerousActionDialog({ + label, + requiredText, +}: { + label: string; + requiredText: string; +}) { + const [value, setValue] = useState(""); + return ( + + + + + + + + + Confirm {label} + + + This frontend displays the impact preview and audit entry only. No real server + action is executed. + + +
+
+ Impact preview: active sessions are notified, a two-factor challenge is required, + and an audit event will be recorded with the supplied reason. +
+ + +
+ + +
+
+
+
+ ); +}