import CollectionTab from './components/collection-tab'; import { activatePlugin as activateCollectionTabPlugin } from './stores/collection-tab'; import { registerHadronPlugin } from 'hadron-app-registry'; import type { DataServiceLocator } from 'mongodb-data-service/provider'; import { dataServiceLocator } from 'mongodb-data-service/provider'; import { mongoDBInstanceLocator } from '@mongodb-js/compass-app-stores/provider'; import type { DataService } from 'mongodb-data-service'; export const CollectionTabPlugin = registerHadronPlugin( { name: 'CollectionTab', component: CollectionTab, activate: activateCollectionTabPlugin, }, { dataService: dataServiceLocator as DataServiceLocator, instance: mongoDBInstanceLocator, } ); export const WorkspaceTab = { name: 'Collection' as const, component: CollectionTabPlugin, }; export type CollectionWorkspace = { type: typeof WorkspaceTab['name']; } & React.ComponentProps; /** * Activate all the components in the Collection package. **/ function activate(): void { // noop } /** * Deactivate all the components in the Collection package. **/ function deactivate(): void { // noop } export default CollectionTabPlugin; export { activate, deactivate }; export { default as metadata } from '../package.json'; export type { CollectionTabPluginMetadata } from './modules/collection-tab'; export { CollectionTabsProvider } from './components/collection-tab-provider';