π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
import { usePlausible } from 'next-plausible';
import { useCallback } from 'react';
import { useVariables } from '@gitroom/react/helpers/variable.context';
export const useFireEvents = () => {
const { billingEnabled } = useVariables();
const plausible = usePlausible();
return useCallback(
(name: string, props?: any) => {
if (!billingEnabled) {
return;
}
plausible(name, { props });
},
[billingEnabled, plausible]
);
};