Files
flights_web_raw/node_modules/@devtools-ds/tree/src/TreeContext.ts
T

19 lines
373 B
TypeScript

import React from 'react';
interface TreeContext {
/** Whether the current tree is a child of another */
isChild: boolean;
/** Depth of current node */
depth: number;
/** Whether to have hover styles */
hasHover: boolean;
}
const TreeContext = React.createContext<TreeContext>({
isChild: false,
depth: 0,
hasHover: true
});
export default TreeContext;