import { QueryTupleForHolder , TupleHolder } from '@/services/data/tuples/tuple-types' ; import React from 'react' ; import { TupleItemExists } from './tuple-item-exists' ; import { TupleItemOperators } from './tuple-item-operators' ; import { TupleItemPickerContainer } from './widgets' ; export const TupleItemPickerInternal = < TH extends TupleHolder , QTH extends QueryTupleForHolder > ( props ) => { const { actionLabel , holder , codes , isHolding , getHoldIds , getNameOfHold , listCandidates , getIdOfCandidate , getNameOfCandidate , isCandidateHold , removeHold , addHold } = props ; return < TupleItemPickerContainer > < TupleItemOperators { ... { actionLabel , holder , codes , isHolding , listCandidates , getIdOfCandidate , getNameOfCandidate , isCandidateHold , removeHold , addHold } } / > < TupleItemExists { ... { holder , codes , getHoldIds , getNameOfHold , removeHold } } / > < /TupleItemPickerContainer>; } ;