import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from 'react';
import { createAuthTracker as createTracker } from '../trackers.js';
export const AuthTrackingContext = createContext({
    createTracker: () => () => { }
});
export const useAuthTracking = () => useContext(AuthTrackingContext);
const useAuthTrackingProvider = ({ children }) => ({
    children,
    createTracker
});
const AuthTrackingProviderView = ({ children, createTracker }) => (_jsx(AuthTrackingContext.Provider, { value: { createTracker }, children: children }));
export const AuthTrackingProvider = props => AuthTrackingProviderView(useAuthTrackingProvider(props));
export default AuthTrackingProvider;
