import { createContext, useContext } from 'react'; type BrandingContextValue = { brandingEnabled: boolean; brandingUrl: string; brandingLogo: string; brandingCompanyDetails: string; brandingHidePoweredBy: boolean; }; const BrandingContext = createContext(undefined); const defaultBrandingContextValue: BrandingContextValue = { brandingEnabled: false, brandingUrl: '', brandingLogo: '', brandingCompanyDetails: '', brandingHidePoweredBy: false, }; export const BrandingProvider = (props: { branding?: BrandingContextValue; children: React.ReactNode; }) => { return ( {props.children} ); }; export const useBranding = () => { const ctx = useContext(BrandingContext); if (!ctx) { throw new Error('Branding context not found'); } return ctx; }; export type BrandingSettings = BrandingContextValue;