import*as i18n from"../i18n/i18n.js";import*as Recorder from"../recorder/recorder.js";import*as UI from"../ui/ui.js";import{Plugin}from"./Plugin.js";const UIStrings={record:"Record"},str_=i18n.i18n.registerUIStrings("sources/RecorderPlugin.js",UIStrings),i18nString=i18n.i18n.getLocalizedString.bind(void 0,str_);export class RecorderPlugin extends Plugin{constructor(r,e){super(),this._textEditor=r,this._uiSourceCode=e}static accepts(r){return Recorder.RecordingFileSystem.isRecordingUISourceCode(r)}leftToolbarItems(){const r=UI.Toolbar.Toolbar.createActionButtonForId("recorder.toggle-recording");return r.setText(i18nString(UIStrings.record)),[r]}}