interface CustomAlertProps {
    alert: {
        cancelText?: string;
        confirmText?: string;
        description?: string;
        title: string;
        type?:
            | "error"
            | "info"
            | "success"
            | "warning";
    };
    className?: string;
    onCancel?: (() => void);
    onConfirm: (() => void);
    trigger: {
        disabled?: boolean;
        icon?: ReactNode;
        size?:
            | "sm"
            | "lg"
            | "default"
            | "icon";
        text: string;
        variant?:
            | "link"
            | "default"
            | "destructive"
            | "outline"
            | "secondary"
            | "ghost";
    };
}

Properties

alert: {
    cancelText?: string;
    confirmText?: string;
    description?: string;
    title: string;
    type?:
        | "error"
        | "info"
        | "success"
        | "warning";
}
className?: string
onCancel?: (() => void)
onConfirm: (() => void)
trigger: {
    disabled?: boolean;
    icon?: ReactNode;
    size?:
        | "sm"
        | "lg"
        | "default"
        | "icon";
    text: string;
    variant?:
        | "link"
        | "default"
        | "destructive"
        | "outline"
        | "secondary"
        | "ghost";
}