import React from "react"; import { Button, Dialog, Text } from "@chakra-ui/react"; interface DeleteTranscriptDialogProps { isOpen: boolean; onClose: () => void; onConfirm: () => void; cancelRef: React.RefObject; isLoading?: boolean; title?: string; date?: string; source?: string; } export default function DeleteTranscriptDialog({ isOpen, onClose, onConfirm, cancelRef, isLoading, title, date, source, }: DeleteTranscriptDialogProps) { return ( { if (!e.open) onClose(); }} initialFocusEl={() => cancelRef.current} > Move to Trash This transcript will be moved to the trash. You can restore it later from the Trash view. {title && ( {title} )} {date && ( Date: {date} )} {source && ( Source: {source} )} ); }