Trying to add site provider

This commit is contained in:
Owen Schwartz
2024-10-13 22:45:48 -04:00
parent 2d754c4279
commit 892dd39e6d
14 changed files with 138 additions and 52 deletions

View File

@@ -0,0 +1,16 @@
"use client";
import { SiteContext } from "@app/contexts/siteContext";
import { GetSiteResponse } from "@server/routers/site/getSite";
import { ReactNode } from "react";
type LandingProviderProps = {
site: GetSiteResponse;
children: ReactNode;
};
export function SiteProvider({ site, children }: LandingProviderProps) {
return <SiteContext.Provider value={site}>{children}</SiteContext.Provider>;
}
export default SiteProvider;