/**
 * FieldActionSlot - Renders a consumer-supplied per-field action component.
 *
 * Used by both `HazoCollabFormView` and `HazoDataForm` to expose inline
 * injection points (`row_end` and `row_below`) for audit icons, RFI
 * buttons, inline detail panels, and similar UI that the form itself does
 * not own.
 *
 * When no matching component is registered the slot returns `null`, so
 * the rendered DOM is byte-identical to the pre-slot rendering.
 */
'use client';
import { jsx as _jsx } from "react/jsx-runtime";
export function FieldActionSlot({ components, slot = 'row_end', field, value, mode, section_id, group_id, }) {
    const Component = components?.[slot];
    if (!Component)
        return null;
    return (_jsx(Component, { field: field, value: value, mode: mode, section_id: section_id, group_id: group_id }));
}
//# sourceMappingURL=field_action_slot.js.map