agent-gui / data /frontend /src /TeamRowPanelContext.tsx
introvoyz041's picture
Migrated from GitHub
c453128 verified
Raw
History Blame Contribute Delete
383 Bytes
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);
}