UNPKG

@patreon/studio

Version:

Patreon Studio Design System

12 lines 435 B
import { useContext } from 'react'; import { StudioLoggerContext } from '../../components/LoggingProvider'; /** * Hook to get a Studio logger function. * @internal this is only exported to support gradual migration of components * from the PRF codebase. Do not use this hook without consulting with the * Studio team. */ export function useLogger() { return useContext(StudioLoggerContext); } //# sourceMappingURL=index.js.map