mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 12:41:41 +03:00
5e56ec65e3
packages/frontend/core/src hooks -> components/hooks atoms -> components/atoms layouts -> components/layouts providers -> components/providers mixpanel -> @affine/track ~~shared~~ ~~unexpected-application-state~~
10 lines
245 B
TypeScript
10 lines
245 B
TypeScript
import { enableAutoTrack, makeTracker } from './auto';
|
|
import { mixpanel } from './mixpanel';
|
|
|
|
export const track = makeTracker((event, props) => {
|
|
mixpanel.track(event, props);
|
|
});
|
|
|
|
export { enableAutoTrack, mixpanel };
|
|
export default track;
|