mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
17 lines
430 B
TypeScript
17 lines
430 B
TypeScript
"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;
|