import { lazy } from 'react' ; import ConnectionType from '@jbrowse/core/pluggableElementTypes/ConnectionType' ; import Plugin from '@jbrowse/core/Plugin' ; import PluginManager from '@jbrowse/core/PluginManager' ; import { configSchema , modelFactory } from './trackhub-registry' ; export default class TrackHubRegistryPlugin extends Plugin { name = 'TrackHubRegistryPlugin' ; install ( pluginManager ) { pluginManager . addConnectionType ( ( ) => new ConnectionType ( { name : 'TheTrackHubRegistryConnection' , configSchema , configEditorComponent : lazy ( ( ) => import ( './trackhub-registry/TrackHubRegistrySelect' ) ) , stateModel : modelFactory ( pluginManager ) , displayName : 'The Track Hub Registry' , description : 'A hub from The Track Hub Registry' , url : '//trackhubregistry.org/' , } ) ) ; } }