import CoEuiButton from '@eui/automation/components/10x/eui/eui-button.js'
import AppBasePage from './app-base.js'
import euiDialogTranslationJson from '../../translations/euiDialog-po-translation.json' assert { type: "json" }
import LocalisationActions from '../../actions/localization-actions.js'

export default class EuiDialogPage extends AppBasePage {
    constructor() {
        super();
    }

    get openDialogButtonCO() {
        return new CoEuiButton(this.euiAppCO.content).byIndex(3);
    }
    translate(text, language = 'en') {
        return LocalisationActions.getTranslation(text, language, euiDialogTranslationJson);
    }
}
