mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-03 16:43:45 +00:00
18 lines
382 B
TypeScript
18 lines
382 B
TypeScript
"use client";
|
|
|
|
import EnvContext from "@app/contexts/envContext";
|
|
import { Env } from "@app/lib/types/env";
|
|
|
|
interface ApiProviderProps {
|
|
children: React.ReactNode;
|
|
env: Env;
|
|
}
|
|
|
|
export function EnvProvider({ children, env }: ApiProviderProps) {
|
|
return (
|
|
<EnvContext.Provider value={{ env }}>{children}</EnvContext.Provider>
|
|
);
|
|
}
|
|
|
|
export default EnvProvider;
|