This commit is contained in:
David Nguyen
2025-01-31 18:57:45 +11:00
parent d7d0fca501
commit aec44b78d0
34 changed files with 2252 additions and 422 deletions

View File

@ -1,14 +1,14 @@
import { createContext, useContext } from 'react';
import React from 'react';
import type { TGetTeamByIdResponse } from '@documenso/lib/server-only/team/get-team';
import type { TGetTeamByUrlResponse } from '@documenso/lib/server-only/team/get-team';
interface TeamProviderProps {
children: React.ReactNode;
team: TGetTeamByIdResponse;
team: TGetTeamByUrlResponse;
}
const TeamContext = createContext<TGetTeamByIdResponse | null>(null);
const TeamContext = createContext<TGetTeamByUrlResponse | null>(null);
export const useCurrentTeam = () => {
const context = useContext(TeamContext);