import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
import { FieldActionIndicator } from "./FieldActionIndicator";
import { useEditContext } from "../client/editContext";
export function FieldActionsIndicators({ pageViewContext, }) {
    const editContext = useEditContext();
    if (!editContext)
        return null;
    const actions = editContext.activeFieldActions;
    return (_jsx(_Fragment, { children: actions
            .filter((x) => x.state === "running" || x.state === "error")
            .map((action) => (_jsx(FieldActionIndicator, { action: action, pageViewContext: pageViewContext }, action.field.fieldId + action.field.item.id))) }));
}
//# sourceMappingURL=FieldActionIndicators.js.map