import * as React from 'react';
export const useGlobalEvent = (eventName, callback) => {
    React.useEffect(() => {
        window.addEventListener(eventName, callback);
        return () => window.removeEventListener(eventName, callback);
    }, [eventName, callback]);
};
