import Topbar from '@/hooks/Mapper/components/topbar/Topbar.tsx'; import { MapInterface } from '@/hooks/Mapper/components/mapInterface/MapInterface.tsx'; import Layout from '@/hooks/Mapper/components/layout/Layout.tsx'; import { MapWrapper } from '@/hooks/Mapper/components/mapWrapper/MapWrapper.tsx'; import { useMapRootState } from '@/hooks/Mapper/mapRootProvider'; import { useCallback, useState } from 'react'; import { OnTheMap, RightBar } from '@/hooks/Mapper/components/mapRootContent/components'; import { MapContextMenu } from '@/hooks/Mapper/components/mapRootContent/components/MapContextMenu/MapContextMenu.tsx'; export interface MapRootContentProps {} // eslint-disable-next-line no-empty-pattern export const MapRootContent = ({}: MapRootContentProps) => { const { mapRef, interfaceSettings } = useMapRootState(); const { isShowMenu } = interfaceSettings; const [showOnTheMap, setShowOnTheMap] = useState(false); const mapInterface = ; const handleShowOnTheMap = useCallback(() => setShowOnTheMap(true), []); return ( }> {!isShowMenu ? (
{mapInterface}
) : (
{mapInterface}
)} setShowOnTheMap(false)} />
); };