diff options
| author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2023-02-27 11:42:26 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-27 11:42:26 +0000 |
| commit | df477a9c456c46f0870ea226f2ac753cecb3c333 (patch) | |
| tree | ce4b4c5a1e5e483d8b9a7c1d1fe26fb61be2308d /assets/useRemainingViewPortHeight-a2a69f20.js | |
Deploy to GitHub pagesdetached
Diffstat (limited to 'assets/useRemainingViewPortHeight-a2a69f20.js')
| -rw-r--r-- | assets/useRemainingViewPortHeight-a2a69f20.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/assets/useRemainingViewPortHeight-a2a69f20.js b/assets/useRemainingViewPortHeight-a2a69f20.js new file mode 100644 index 0000000..cc63538 --- /dev/null +++ b/assets/useRemainingViewPortHeight-a2a69f20.js @@ -0,0 +1 @@ +import{h as r}from"./index-575a50fa.js";const{useState:s,useRef:u,useCallback:a,useLayoutEffect:c}=r;function d(){const t=u(null),[n,i]=s(200),e=a(()=>{const{top:o}=t.current.getBoundingClientRect();i(window.innerHeight-o)},[]);return c(()=>(e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}),[e]),[t,n]}export{d as u}; |
