import {useViewportSize} from '@react-aria/utils'; export function useOverlayViewport(): Record { const {width, height} = useViewportSize(); return { '--be-viewport-height': `${height}px`, '--be-viewport-width': `${width}px`, }; }