Files
mtdb_movie/common/resources/client/ui/overlays/use-overlay-viewport.ts
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

10 lines
262 B
TypeScript
Executable File

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