import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, Button, } from "@/ui"; import { Row, RowData, Table } from "@tanstack/react-table"; import { t } from "i18next"; import { ChevronDownIcon, ChevronUpIcon, CopyIcon, Trash2Icon } from "lucide-react"; export const QuoteItemsInlineRowActions = ({ row, table, onDelete, confirmDelete = true }: { row: Row; table: Table; onDelete: () => void; confirmDelete?: boolean; }) => { const handleDelete = () => { table.options.meta?.deleteItems(row.index); onDelete(); }; return (
{confirmDelete ? {t("quotes.inline_row_actions.delete_confirmation.title")} {t("quotes.inline_row_actions.delete_confirmation.description")} {t("common.cancel")} : }
); };