// @ts-nocheck import React from 'react'; import { FormGroup, Intent, Classes } from '@blueprintjs/core'; import classNames from 'classnames'; import { CellType } from '@/constants'; import { BranchSuggestField } from '../Branches'; /** * Branches list field cell. * @returns */ export default function BranchesListFieldCell({ column: { id }, row: { index, original }, payload: { branches, updateData, errors }, }) { const handleBranchSelected = React.useCallback( (branch) => { updateData(index, 'branch_id', branch.id); }, [updateData, index], ); const error = errors?.[index]?.[id]; return ( ); } BranchesListFieldCell.cellType = CellType.Field;