GoonCord/utils/findInReactTree.ts

9 lines
305 B
TypeScript
Raw Normal View History

2025-12-10 17:20:21 +01:00
import { findInTree } from "@lib/utils";
import { SearchFilter } from "@lib/utils/findInTree";
export default function findInReactTree(tree: { [key: string]: any; }, filter: SearchFilter): any {
return findInTree(tree, filter, {
walkable: ["props", "children", "child", "sibling"],
});
}