diff --git a/src/App.tsx b/src/App.tsx
index b68c756..a6df8e3 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -64,6 +64,9 @@ function App() {
minHeight: "100%",
aspectRatio: "16/9"
}
+ function setMoviesHandler(movies: Movie[]) {
+ }
+
return (
<>
@@ -72,8 +75,10 @@ function App() {
+
{
+ function handleResize() {
+ setWindowDimensions(getWindowDimensions());
+ }
+
+ window.addEventListener('resize', handleResize);
+ return () => window.removeEventListener('resize', handleResize);
+ }, []);
+
+ return windowDimensions;
+}