lifeto-shop/src/context/AppContext.tsx
2025-06-20 00:41:10 -05:00

15 lines
375 B
TypeScript

import { SessionContextProvider } from './SessionContext'
interface IContext {
children: React.ReactNode
}
function AppContext(props: IContext): any {
const { children } = props
const providers = [SessionContextProvider]
const res = providers.reduceRight((acc, CurrVal) => <CurrVal>{acc as any}</CurrVal>, children)
return res as any
}
export default AppContext