import { action } from "mobx"; import { observer } from "mobx-react"; import { useViewState } from "../Context"; import ModalPopup from "./ModalPopup"; import Tabs from "./Tabs"; import Text from "../../Styled/Text"; import Box from "../../Styled/Box"; import { useTheme } from "styled-components"; import { useTranslation } from "react-i18next"; export const ExplorerWindowElementName = "AddData"; export default observer(function ExplorerWindow() { const viewState = useViewState(); const theme = useTheme(); const onClose = action(() => { viewState.closeCatalog(); viewState.switchMobileView("nowViewing"); }); const onStartAnimatingIn = action(() => { viewState.explorerPanelAnimating = true; }); const onDoneAnimatingIn = action(() => { viewState.explorerPanelAnimating = false; }); const isVisible = !viewState.useSmallScreenInterface && !viewState.hideMapUi && viewState.explorerPanelIsVisible; const { t } = useTranslation(); return ( {t("addData.dataCatalogue")} ); });