import { UMB_CREATE_MEDIA_TYPE_WORKSPACE_PATH_PATTERN } from '../../../paths.js';
import { UmbEntityCreateOptionActionBase } from '../../../../../core/entity-create-option-action/index.js';
export class UmbDefaultMediaTypeCreateOptionAction extends UmbEntityCreateOptionActionBase {
    async getHref() {
        const parentEntityType = this.args.entityType;
        if (!parentEntityType)
            throw new Error('Entity type is required to create a media type');
        const parentUnique = this.args.unique ?? null;
        return UMB_CREATE_MEDIA_TYPE_WORKSPACE_PATH_PATTERN.generateAbsolute({
            parentEntityType,
            parentUnique,
        });
    }
}
export { UmbDefaultMediaTypeCreateOptionAction as api };
