"use strict";import Dimensions from"../Dimensions";import{useEffect,useState}from"react";export default function useWindowDimensions(){var n=useState(function(){return Dimensions.get("window")}),e=n[0],i=n[1];return useEffect(function(){function n(n){var e=n.window;i(e)}return Dimensions.addEventListener("change",n),i(Dimensions.get("window")),function(){Dimensions.removeEventListener("change",n)}},[]),e};