import { useContext } from 'react'; import { InwinkContext } from '../context/InwinkContextProvider'; /** Accès au contexte inwink courant (event / community / tenant + loaders de listes). */ export function useInwinkContext() { const context = useContext(InwinkContext); if (!context) { throw new Error('useInwinkContext must be used within InwinkContextProvider.'); } return context; }