import React from "react"; import { IconButton, Menu } from "@chakra-ui/react"; import { LuMenu, LuTrash, LuRotateCw, LuUndo2 } from "react-icons/lu"; interface TranscriptActionsMenuProps { transcriptId: string; onDelete?: (transcriptId: string) => void; onReprocess?: (transcriptId: string) => void; onRestore?: (transcriptId: string) => void; onDestroy?: (transcriptId: string) => void; } export default function TranscriptActionsMenu({ transcriptId, onDelete, onReprocess, onRestore, onDestroy, }: TranscriptActionsMenuProps) { return ( {onReprocess && ( onReprocess(transcriptId)} > Reprocess )} {onDelete && ( { e.stopPropagation(); onDelete(transcriptId); }} > Delete )} {onRestore && ( onRestore(transcriptId)}> Restore )} {onDestroy && ( { e.stopPropagation(); onDestroy(transcriptId); }} > Destroy )} ); }