// @ts-nocheck import React from 'react'; import intl from 'react-intl-universal'; import { MenuItem, Menu, Button, Position, Intent } from '@blueprintjs/core'; import { Popover2 } from '@blueprintjs/popover2'; import { Align, CellType, Features } from '@/constants'; import { Hint, Icon, FormattedMessage as T } from '@/components'; import { formattedAmount } from '@/utils'; import { InputGroupCell, MoneyFieldCell, ItemsListCell, PercentFieldCell, NumericInputCell, CheckBoxFieldCell, ProjectBillableEntriesCell, } from '@/components/DataTableCells'; import { useFeatureCan } from '@/hooks/state'; import { TaxRatesSuggestInputCell } from '@/components/TaxRates/TaxRatesSuggestInputCell'; import { useItemEntriesTableContext } from './ItemEntriesTableProvider'; /** * Item header cell. */ export function ItemHeaderCell() { return ( <> } tooltipProps={{ boundary: 'window', position: Position.RIGHT }} /> ); } /** * Actions cell renderer component. */ export function ActionsCellRenderer({ row: { index }, payload: { removeRow }, }) { const onRemoveRole = () => { removeRow(index); }; const exampleMenu = ( } /> ); return (