import React , {ReactNode} from "react"; import confirmAlert from "./Alert"; import { FaEdit, FaTrash } from "react-icons/fa"; type TableActionsProps = { onDelete: () => any; onEdit: () => void; showEdit?: boolean; showDelete?: boolean; children?: ReactNode; }; const TableActions = ({ onDelete , onEdit,showEdit=true,showDelete=true, children }:TableActionsProps) => { return (