diff --git a/src/components/CameraOverview/SnapshotContainer.tsx b/src/components/CameraOverview/SnapshotContainer.tsx index c7a26b9..87cb48f 100644 --- a/src/components/CameraOverview/SnapshotContainer.tsx +++ b/src/components/CameraOverview/SnapshotContainer.tsx @@ -3,6 +3,8 @@ import type { ZoomInOptions } from "../../types/types"; import NavigationArrow from "../UI/NavigationArrow"; import { useCameraZoom } from "../../hooks/useCameraZoom"; import { useEffect } from "react"; +import Loading from "../UI/Loading"; +import ErrorState from "../UI/ErrorState"; type SnapshotContainerProps = { side: string; @@ -42,13 +44,16 @@ export const SnapshotContainer = ({ // eslint-disable-next-line react-hooks/exhaustive-deps }, [zoomLevel]); - if (isError) return
An error occurred
; - if (isPending) returnLoading...
; - return (