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. +
+ + +
+ + +
+
+
+
+ ); +}