"use client"; import { createContext, useContext, useState, ReactNode } from 'react'; export type RLNImplementationType = 'standard' | 'light'; interface RLNImplementationContextType { implementation: RLNImplementationType; setImplementation: (implementation: RLNImplementationType) => void; } const RLNImplementationContext = createContext(undefined); export function RLNImplementationProvider({ children }: { children: ReactNode }) { const [implementation, setImplementation] = useState('light'); return ( {children} ); } export function useRLNImplementation() { const context = useContext(RLNImplementationContext); if (context === undefined) { throw new Error('useRLNImplementation must be used within a RLNImplementationProvider'); } return context; }