Files
flipper/desktop/plugins/public/ui-debugger/utils/map.tsx
Luke De Feo 206ef79cf9 Improve table view
Summary:
added component name, root component name, duration, event type and better names

changelog: UIDebugger - added event debugger table view and side panel views

Reviewed By: lblasa

Differential Revision: D48559367

fbshipit-source-id: d357ecf654b4e443eac7673731a8be542e76dd48
2023-08-23 01:51:31 -07:00

19 lines
458 B
TypeScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {ClientNode, Id} from '../ClientTypes';
export function getNode(
id: Id | undefined,
nodes: Map<Id, ClientNode>,
): ClientNode | undefined {
//map just returns undefined when you pass null or undefined as a key
return nodes.get(id!);
}