feat: add organisations (#1820)

This commit is contained in:
David Nguyen
2025-06-10 11:49:52 +10:00
committed by GitHub
parent 0b37f19641
commit e6dc237ad2
631 changed files with 37616 additions and 25695 deletions

View File

@ -1,13 +1,13 @@
import { createContext, useContext } from 'react';
import React from 'react';
import type { TGetTeamsResponse } from '@documenso/lib/server-only/team/get-teams';
import type { TeamSession } from '@documenso/trpc/server/organisation-router/get-organisation-session.types';
type TeamProviderValue = TGetTeamsResponse[0];
type TeamProviderValue = TeamSession;
interface TeamProviderProps {
children: React.ReactNode;
team: TeamProviderValue;
team: TeamProviderValue | null;
}
const TeamContext = createContext<TeamProviderValue | null>(null);