{contentError}
- ) : !currentSection ? ( -Информация отсутствует.
- ) : ( - <> - {!isFullscreen3D && ( -+ {contentError ? ( +
{contentError}
+ ) : ( + <> + {!isFullscreen3D && ( ++ {selectedSection === 0 + ? processedSightName || sightData?.name + : sightData?.short_name || sightData?.name} +
+{contentError}
+ ) : ( + articleSections && + articleSections.length > 1 && + articleSections.slice(1).map((section, index) => ( +{contentError}
- ) : ( - articleSections && - articleSections.length > 1 && - articleSections.slice(1).map((section, index) => ( -Whoopsie Daisy!
: this.props.children; - } -} - -export function InfiniteCanvas({ - children, -}: Readonly<{ children?: ReactNode }>) { - const { - position, - setPosition, - scale, - setScale, - rotation, - setRotation, - setScreenCenter, - screenCenter, - } = useTransform(); - const { routeData, originalRouteData, setSelectedSight } = useMapData(); - - const applicationRef = useApplication(); - - const [isDragging, setIsDragging] = useState(false); - const [startMousePosition, setStartMousePosition] = useState({ x: 0, y: 0 }); - const [startRotation, setStartRotation] = useState(0); - const [startPosition, setStartPosition] = useState({ x: 0, y: 0 }); - const [isPointerDown, setIsPointerDown] = useState(false); - - const [isUserInteracting, setIsUserInteracting] = useState(false); - - const lastOriginalRotation = useRef