import * as React from 'react';
import { FIELD_ACTION_ORDER } from '../types/field_action.js';
import { LazyAuditIcon } from './lazy_audit_icon.js';
export function build_builtin_actions(args) {
    const out = [];
    if (args.field_audit && args.field_audit.show_icons !== false) {
        const audit = args.field_audit;
        out.push({
            id: 'audit',
            position: 'row_end',
            order: FIELD_ACTION_ORDER.AUDIT,
            builtin: true,
            render: (ctx) => React.createElement(LazyAuditIcon, {
                subjectKind: audit.subjectKind,
                subjectId: audit.subjectId,
                fieldPath: ctx.field.id,
                api_base: audit.api_base,
            }),
        });
    }
    return out;
}
//# sourceMappingURL=built_in_actions.js.map