Files
d559acff-e4ee-448d-92d0-d32…/src/components/ui/StyleProvider.tsx
2026-06-16 13:54:10 +00:00

33 lines
706 B
TypeScript

"use client";
import { type ReactNode } from "react";
import {
StyleContext,
type ButtonVariant,
type HeroBackgroundVariant,
type SiteBackgroundVariant,
} from "@/components/ui/useStyle";
interface StyleProviderProps {
buttonVariant?: ButtonVariant;
siteBackground?: SiteBackgroundVariant;
heroBackground?: HeroBackgroundVariant;
children: ReactNode;
}
export function StyleProvider({
buttonVariant = "default",
siteBackground = "none",
heroBackground = "none",
children,
}: StyleProviderProps) {
return (
<StyleContext.Provider value={{ buttonVariant, siteBackground, heroBackground }}>
{children}
</StyleContext.Provider>
);
}
export default StyleProvider;