import { getTextBundle } from '../../i18n.js'; import { DialogFactory } from '../dialog-factory.js'; import type { EnablementValidator, EnablementValidatorResult } from './enablement-validator.js'; export const DIALOG_ENABLEMENT_VALIDATOR: EnablementValidator = { run: async (): Promise => { const i18n = await getTextBundle(); if (!DialogFactory.canOpenDialog) { return { type: 'error', message: i18n.getText('ADP_QUICK_ACTION_DIALOG_OPEN_MESSAGE') }; } return undefined; } };