UNPKG

@patreon/studio

Version:

Patreon Studio Design System

10 lines (9 loc) 532 B
import React from 'react'; type StudioLogActionType = 'buttonClick' | 'textLinkClick' | 'dialogOpen' | 'dialogClose' | 'overlayOpen' | 'overlayClose'; type StudioLogFunctionType = (type: StudioLogActionType, loggerId?: string, loggerProps?: Record<string, string | number | boolean>) => void; export declare const StudioLoggerContext: React.Context<StudioLogFunctionType>; export declare function StudioLoggerProvider(props: { children: React.ReactNode; logFunction: StudioLogFunctionType; }): React.JSX.Element; export {};