Use team name and favicon (when public branding enabled) on shared links

This commit is contained in:
Tom Moor
2023-05-08 14:46:25 -04:00
parent a0df79ea5a
commit 07ae67924f
8 changed files with 69 additions and 49 deletions

View 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);
}