import { EmbeddablePersistableStateService } from 'src/plugins/embeddable/common' ; import { EmbeddableRegistryDefinition } from '../../../embeddable/server' ; import { createExtract , createInject , } from '../../common/embeddable/dashboard_container_persistable_state' ; export const dashboardPersistableStateServiceFactory = ( persistableStateService ) : EmbeddableRegistryDefinition => { return { id : 'dashboard' , extract : createExtract ( persistableStateService ) , inject : createInject ( persistableStateService ) , } ; } ;