import { jsx as _jsx } from "react/jsx-runtime";
import { memo } from 'react';
import { CallbackOperation } from './CallbackOperation.js';
function CallbacksListComponent({ callbacks, selectedCallback, onExpand, }) {
    if (!callbacks || callbacks.length === 0) {
        return null;
    }
    const handleSelectCallback = (callbackId) => {
        onExpand(callbackId);
    };
    return (_jsx("div", { children: callbacks.map((callback) => callback.operations.map((operation) => {
            return (_jsx(CallbackOperation, { operation: operation, selectedCallback: selectedCallback, onExpand: handleSelectCallback }, operation.name));
        })) }));
}
export const CallbacksList = memo(CallbacksListComponent);
//# sourceMappingURL=CallbacksList.js.map