/** * @prettier */ import React from "react" import PropTypes from "prop-types" import ImPropTypes from "react-immutable-proptypes" const Callbacks = ({ callbacks, specPath, specSelectors, getComponent }) => { const operationDTOs = specSelectors.callbacksOperations({ callbacks, specPath, }) const callbackNames = Object.keys(operationDTOs) const OperationContainer = getComponent("OperationContainer", true) if (callbackNames.length === 0) return No callbacks return (