Use team name and favicon (when public branding enabled) on shared links
This commit is contained in:
11
app/components/TeamContext.ts
Normal file
11
app/components/TeamContext.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as React from "react";
|
||||
import { PublicTeam } from "@shared/types";
|
||||
import Team from "~/models/Team";
|
||||
|
||||
export const TeamContext = React.createContext<Team | PublicTeam | undefined>(
|
||||
undefined
|
||||
);
|
||||
|
||||
export function useTeamContext() {
|
||||
return React.useContext(TeamContext);
|
||||
}
|
||||
Reference in New Issue
Block a user