import { i18n } from '@osd/i18n' ; import { EmbeddableFactoryDefinition , EmbeddableInput , IContainer , } from '../../../embeddable_plugin' ; import { PlaceholderEmbeddable , PLACEHOLDER_EMBEDDABLE } from './placeholder_embeddable' ; export class PlaceholderEmbeddableFactory implements EmbeddableFactoryDefinition { public readonly type = PLACEHOLDER_EMBEDDABLE ; public async isEditable ( ) { return false ; } public canCreateNew ( ) { return false ; } public async create ( initialInput , parent ? ) { return new PlaceholderEmbeddable ( initialInput , parent ) ; } public getDisplayName ( ) { return i18n . translate ( 'dashboard.placeholder.factory.displayName' , { defaultMessage : 'placeholder' , } ) ; } }