import { RefObject, useRef } from "react"; import { ITreeRefProps } from "../interfaces"; // interface ITreeProps extends ITreeRefProps { interface ITreeProps { treeRef: RefObject; } export const useTree = (): ITreeProps => { const treeRef = useRef(null); return { treeRef, }; };