import { UMB_WORKSPACE_CONTEXT } from '../../workspace.context-token.js';
import { UmbConditionBase } from '../../../extension-registry/index.js';
export class UmbWorkspaceEntityTypeCondition extends UmbConditionBase {
    constructor(host, args) {
        super(host, args);
        this.consumeContext(UMB_WORKSPACE_CONTEXT, (context) => {
            this.permitted = context?.getEntityType().toLowerCase() === this.config.match.toLowerCase();
        });
    }
}
