diff --git a/src/pages/InfrastructurePage.tsx b/src/pages/InfrastructurePage.tsx new file mode 100644 index 0000000..01f2cc3 --- /dev/null +++ b/src/pages/InfrastructurePage.tsx @@ -0,0 +1,58 @@ +import { useRef, useState } from "react"; +import Button from "../components/Button"; +import ArrowLeftIcon from "../components/icons/ArrowLeftIcon"; +import FullscreenIcon from "../components/icons/FullscreenIcon"; +import { useFullscreen } from "ahooks"; +import WindowModeIcon from "../components/icons/WindowModeIcon"; +import _images from "../images.json"; +import Image from "../types/Image"; + +const images = _images as Image[]; + +const InfrastructurePage = () => { + const [selectedImageId, setSelectedImageId] = useState(images[0].id); + const fullscreenRef = useRef(null); + const [isFullscreen, { toggleFullscreen }] = useFullscreen(fullscreenRef); + + return ( +
+
+
+ {selectedImageId.includes("Dvor") && ( + <> +

+ Внутренний +
+ двор +

+ + + )} + {selectedImageId.includes("Lobby_1") && ( + <> +

Лобби

+ + + )} + {selectedImageId.includes("Lobby_2") && ( + <> +

Лобби

+ + + )} +
+
+ +
+
+
+ ); +}; + +export default InfrastructurePage;