import { Calendar } from "@/features/Calendars/CalendarTypes"; import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, } from "@linagora/twake-mui"; import { useI18n } from "twake-i18n"; export function DeleteCalendarDialog({ deletePopupOpen, setDeletePopupOpen, calendars, id, isPersonal, handleDeleteConfirm, }: { deletePopupOpen: boolean; setDeletePopupOpen: (e: boolean) => void; calendars: Record; id: string; isPersonal: boolean; handleDeleteConfirm: () => void; }) { const { t } = useI18n(); return ( setDeletePopupOpen(false)}> {t("calendar.delete.title", { name: calendars[id].name })} {isPersonal ? t("calendar.delete.personalWarning") : t("calendar.delete.sharedWarning")} ); }