2023-04-15 19:54:23 +01:00
|
|
|
import { findInTree } from "@lib/utils";
|
2024-02-23 15:11:35 +08:00
|
|
|
import { SearchFilter } from "./findInTree";
|
2022-10-18 23:21:58 +01:00
|
|
|
|
2024-02-28 14:09:42 +08:00
|
|
|
export const findInReactTree = (tree: { [key: string]: any }, filter: SearchFilter): any => findInTree(tree, filter, {
|
2023-01-14 02:39:10 +00:00
|
|
|
walkable: ["props", "children", "child", "sibling"],
|
|
|
|
|
});
|