File size: 383 Bytes
c453128
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { createContext, useContext } from "react";

export const TEAM_ROW_HEIGHT = 440;

export type TeamRowPanelContextValue = {
  root: HTMLElement | null;
  height: number;
};

export const TeamRowPanelContext = createContext<TeamRowPanelContextValue>({
  root: null,
  height: TEAM_ROW_HEIGHT,
});

export function useTeamRowPanel() {
  return useContext(TeamRowPanelContext);
}