import { ExclamationIcon } from "@heroicons/react/outline"; import { CheckIcon } from "@heroicons/react/solid"; import * as DialogPrimitive from "@radix-ui/react-dialog"; import React, { PropsWithChildren } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Button } from "@calcom/ui/Button"; import { DialogClose, DialogContent } from "@calcom/ui/Dialog"; export type DeleteStripeDialogContentProps = { cancelAllBookingsBtnText?: string; removeBtnText?: string; cancelBtnText?: string; onConfirm?: (event: React.MouseEvent) => void; onRemove?: (event: React.MouseEvent) => void; title: string; variety?: "danger" | "warning" | "success"; }; export default function DeleteStripeDialogContent(props: PropsWithChildren) { const { t } = useLocale(); const { title, variety, cancelAllBookingsBtnText, removeBtnText, cancelBtnText = t("cancel"), onConfirm, onRemove, children, } = props; return (
{variety && (
{variety === "danger" && (
)} {variety === "warning" && (
)} {variety === "success" && (
)}
)}
{title} {children}
); }