- (
-
- )}
- />
- (
-
- )}
- />
+ } />
+ } />
diff --git a/maps_dashboards/public/components/map_page/map_page.tsx b/maps_dashboards/public/components/map_page/map_page.tsx
index 37eaef1a..1a8fc4a7 100644
--- a/maps_dashboards/public/components/map_page/map_page.tsx
+++ b/maps_dashboards/public/components/map_page/map_page.tsx
@@ -4,52 +4,13 @@
*/
import React from 'react';
-import { i18n } from '@osd/i18n';
-import { AppMountParameters, CoreStart } from 'opensearch-dashboards/public';
-import {
- NavigationPublicPluginStart as NavigationStart,
- TopNavMenuData,
-} from '../../../../../src/plugins/navigation/public';
-import { PLUGIN_ID } from '../../../common';
import { MapContainer } from '../map_container';
+import { MapTopNavMenu } from '../map_top_nav';
-interface MapContainerProps {
- navigation: NavigationStart;
- setHeaderActionMenu: AppMountParameters['setHeaderActionMenu'];
- savedObjectsClient: CoreStart['savedObjects']['client'];
-}
-
-export const MapPage = ({
- navigation,
- setHeaderActionMenu,
- savedObjectsClient,
-}: MapContainerProps) => {
- const topNavMenuConfigs: TopNavMenuData[] = [];
- topNavMenuConfigs.push({
- label: i18n.translate('maps.topNav.saveMapButtonLabel', {
- defaultMessage: `Save`,
- }),
- run: async () => {
- await savedObjectsClient.create('map', {
- title: 'test to add',
- description: 'test to add the description',
- });
- },
- iconType: 'save',
- });
- const renderTopNavMenu = () => {
- const { TopNavMenu } = navigation.ui;
- return (
-