AFFiNE/packages/frontend/track/src/index.ts
EYHN 5e56ec65e3
refactor(core): adjust core struct (#8218)
packages/frontend/core/src

hooks -> components/hooks
atoms -> components/atoms
layouts -> components/layouts
providers -> components/providers
mixpanel -> @affine/track
~~shared~~
~~unexpected-application-state~~
2024-09-13 11:31:21 +00:00

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;