JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "tree-context.tsx"

Full Path: /home/markqprx/iniasli.pro/client/ui/tree/tree-context.tsx
File size: 342 bytes
MIME-type: text/plain
Charset: utf-8

import {createContext, Key} from 'react';

export interface TreeContextValue {
  expandedKeys: Key[];
  setExpandedKeys: (value: Key[]) => void;
  selectedKeys: Key[];
  setSelectedKeys: (value: Key[]) => void;
  focusedNode?: Key;
  setFocusedNode: (node?: Key) => void;
}

export const TreeContext = createContext<TreeContextValue>(null!);