'use client';


import { useEffect, useState } from "react";

//#region src/hooks/useGetElementOrWindow.ts
const useGetElementOrWindow = (container) => {
	const [containerElement, setContainerElement] = useState(container);
	useEffect(() => {
		setContainerElement(container ?? window.document.body);
	}, [container]);
	return containerElement;
};

//#endregion
export { useGetElementOrWindow };
//# sourceMappingURL=useGetElementOrWindow.mjs.map