GRV-Summit-Site/components/layout/TopoSectionContext.tsx
“kirukib” 3693495dd0
Some checks are pending
Deploy to Cloudflare Workers (OpenNext) / deploy (push) Waiting to run
Add site-wide topography patterns and refine section styling.
Use mainwhite.svg on white sections with curvy green transitions into flat green bands, improve text and button contrast, and deploy via OpenNext on Cloudflare Workers.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 20:34:36 +03:00

23 lines
537 B
TypeScript

"use client";
import { createContext, useContext, type ReactNode } from "react";
import type { TopoSectionTone } from "@/content/topo-patterns";
const TopoSectionContext = createContext<TopoSectionTone>("light");
export function TopoSectionProvider({
tone,
children,
}: {
tone: TopoSectionTone;
children: ReactNode;
}) {
return (
<TopoSectionContext.Provider value={tone}>{children}</TopoSectionContext.Provider>
);
}
export function useTopoSectionTone(): TopoSectionTone {
return useContext(TopoSectionContext);
}