import React, { RefObject } from 'react'; export const PopoverContext = React.createContext({ onClose: () => {}, initialFocusRef: { current: null } as RefObject, finalFocusRef: { current: null } as RefObject, popoverContentId: undefined as string | undefined, headerId: undefined as string | undefined, bodyId: undefined as string | undefined, setHeaderMounted: (() => {}) as any, setBodyMounted: (() => {}) as any, headerMounted: false, bodyMounted: false, });