@barguide/react-hooks
Version:
TypeScript | React Hooks
14 lines (13 loc) • 405 B
TypeScript
/**
* @name useCheckoutLoader
* @description We use the "effect" hook to add/remove an "emitter" instance
* to our Modal component. By passing the "setter" from our React State we
* can get a live subscription to the state
*/
declare const useScrollDirection: () => {
bottom: boolean;
direction: boolean;
position: number;
top: boolean;
};
export { useScrollDirection };