mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-21 04:16:38 +00:00
ability to remove user from org
This commit is contained in:
16
src/providers/UserProvider.tsx
Normal file
16
src/providers/UserProvider.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { UserContext } from "@app/contexts/userContext";
|
||||
import { GetUserResponse } from "@server/routers/user";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
type UserProviderProps = {
|
||||
user: GetUserResponse;
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
export function UserProvider({ user, children }: UserProviderProps) {
|
||||
return <UserContext.Provider value={user}>{children}</UserContext.Provider>;
|
||||
}
|
||||
|
||||
export default UserProvider;
|
||||
Reference in New Issue
Block a user