import DropdownMenu, { DropdownMenuItemProps } from '../DropdownMenu' import MoreIcon from '~/icons/compiled/More' export default function TableRowMenu({ menu, }: { menu: DropdownMenuItemProps[] | null | undefined }) { if (!menu || !menu.length) { return null } return (
{ if ('url' in act) { return { ...act, newTab: act.url !== '#' } } // action/route/params props have already been normalized into `path` by useTableSerializer() return act })} // `modal` mode prevents menu from interfering with table overflow behavior modal >
) }