import * as React from "react"; import type { Subject } from "./tree/subject"; /** * A hook that observes to plugins and retrieves props that should be applied * to a given node. An example of a plugin wouuld be the `useTraits()` hook. * * @param nodeId - The node ID used to retrieve props from a plugin * @param plugins - A list of file tree plugins * @example * ```ts * const traits = useTraits(fileTree) * const props = useNodePlugins(fileTree.visibleNodes[0], [traits]) * return