Files
49a970c1-d0b2-4dfa-a87d-e32…/src/components/ui/StyleProvider.tsx
2026-06-15 01:07:01 +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;