feat : update
CI / Verify (push) Successful in 1m16s
CI / Build immutable images and deploy (push) Successful in 2m5s

This commit is contained in:
2026-09-04 20:04:06 +07:00 Unverified
parent dd87510d68
commit 06d0287433
5 changed files with 185 additions and 86 deletions
@@ -3,6 +3,7 @@
import type { ComponentProps, ReactNode } from "react";
import { toast } from "sonner";
import { SimpleTooltip } from "@/components/tooltip";
import {
AlertDialog,
AlertDialogAction,
@@ -25,6 +26,7 @@ interface DeleteConfirmationDialogProps {
open?: ComponentProps<typeof AlertDialog>["open"];
onOpenChange?: ComponentProps<typeof AlertDialog>["onOpenChange"];
showSuccessToast?: boolean;
triggerTooltip?: ReactNode;
}
export function DeleteConfirmationDialog({
@@ -37,6 +39,7 @@ export function DeleteConfirmationDialog({
open,
onOpenChange,
showSuccessToast = true,
triggerTooltip,
}: DeleteConfirmationDialogProps) {
const handleConfirm = async () => {
await onConfirm();
@@ -46,7 +49,13 @@ export function DeleteConfirmationDialog({
return (
<AlertDialog open={open} onOpenChange={onOpenChange}>
{trigger ? (
<AlertDialogTrigger render={trigger}>{children}</AlertDialogTrigger>
triggerTooltip ? (
<SimpleTooltip text={triggerTooltip}>
<AlertDialogTrigger render={trigger}>{children}</AlertDialogTrigger>
</SimpleTooltip>
) : (
<AlertDialogTrigger render={trigger}>{children}</AlertDialogTrigger>
)
) : null}
<AlertDialogContent>
<AlertDialogHeader>