UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

12 lines (11 loc) 405 B
import React from "react"; interface ClickOutsideProps { ref: React.RefObject<HTMLDivElement>; } /** * Creates and returns reference to a div element, which the caller can * populate. `callback` is invoked if a click occurs outside of the reference * Useful for dropdown implementation */ export default function useClickOutside(callback: (...args: any[]) => void): ClickOutsideProps; export {};