@patreon/studio
Version:
Patreon Studio Design System
8 lines (7 loc) • 444 B
TypeScript
/**
* 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 declare function useLogger(): (type: "buttonClick" | "textLinkClick" | "dialogOpen" | "dialogClose" | "overlayOpen" | "overlayClose", loggerId?: string, loggerProps?: Record<string, string | number | boolean>) => void;