@atlaskit/popup
Version:
A popup displays brief content in an overlay.
8 lines (7 loc) • 540 B
TypeScript
import { type Dispatch, type SetStateAction } from 'react';
/**
* Here setting ref is not dependent on isOpen flag which is failing in React 18 strict mode
* Implemented behind ff `platform-design-system-popup-ref`
* @returns Function to set trigger ref
*/
export declare const useGetMemoizedMergedTriggerRefNew: () => import("memoize-one").MemoizedFn<(ref: React.RefCallback<HTMLElement> | React.MutableRefObject<HTMLElement> | null, setTriggerRef: Dispatch<SetStateAction<HTMLElement | null>>) => (node: HTMLElement | null) => void>;