mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
bf45e97641
* Update types * fix circular dep * type imports * lint type imports and --fix
12 lines
300 B
TypeScript
12 lines
300 B
TypeScript
import { createContext, useContext } from "react";
|
|
import type { PublicTeam } from "@shared/types";
|
|
import type Team from "~/models/Team";
|
|
|
|
export const TeamContext = createContext<Team | PublicTeam | undefined>(
|
|
undefined
|
|
);
|
|
|
|
export function useTeamContext() {
|
|
return useContext(TeamContext);
|
|
}
|