first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
import type { ActiveOrganization } from "@repo/auth";
|
||||
import React from "react";
|
||||
|
||||
export const ActiveOrganizationContext = React.createContext<
|
||||
| {
|
||||
activeOrganization: ActiveOrganization | null;
|
||||
activeOrganizationUserRole:
|
||||
| ActiveOrganization["members"][number]["role"]
|
||||
| null;
|
||||
isOrganizationAdmin: boolean;
|
||||
loaded: boolean;
|
||||
setActiveOrganization: (
|
||||
organizationId: string | null,
|
||||
) => Promise<void>;
|
||||
refetchActiveOrganization: () => Promise<void>;
|
||||
}
|
||||
| undefined
|
||||
>(undefined);
|
||||
Loading…
Add table
Add a link
Reference in a new issue