// @ts-nocheck import React from 'react'; import intl from 'react-intl-universal'; import { Position, Classes, Tooltip, MenuItem, Menu, MenuDivider, Intent, } from '@blueprintjs/core'; import { Can, Icon, If } from '@/components'; import { safeCallback } from '@/utils'; import { AbilitySubject, AccountAction } from '@/constants/abilityOption'; /** * Accounts table actions menu. */ export function ActionsMenu({ row: { original }, payload: { onEdit, onViewDetails, onDelete, onNewChild, onActivate, onInactivate, // onDrawer, }, }) { return (
); } /** * Normal cell. */ export function NormalCell({ cell: { value } }) { const arrowDirection = value === 'credit' ? 'down' : 'up'; // Can't continue if the value is not `credit` or `debit`. if (['credit', 'debit'].indexOf(value) === -1) { return ''; } return (