mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-24 22:36:22 +02:00
6 lines
206 B
TypeScript
6 lines
206 B
TypeScript
import { usePostHog as usePostHogHook } from "posthog-js/react";
|
|
|
|
export const usePostHog = () => {
|
|
const posthog = usePostHogHook();
|
|
return process.env.NEXT_PUBLIC_POSTHOG_API_KEY ? posthog : null;
|
|
};
|