import { NestedTableLeafNodeState } from './NestedTableLeafNodeState';
export function getNodeOrLeaf(parentNode, keyedItem) {
    const node = parentNode.parentKeyToChildrenMap.get(keyedItem.key);
    return (node ??
        new NestedTableLeafNodeState({
            parentNode,
            parent: keyedItem,
        }));
}
//# sourceMappingURL=getNodeOrLeaf.js.map