/** * @prettier */ import React from "react" import PropTypes from "prop-types" import { List } from "immutable" const Webhooks = ({ specSelectors, getComponent }) => { const operationDTOs = specSelectors.selectWebhooksOperations() const pathItemNames = Object.keys(operationDTOs) const OperationContainer = getComponent("OperationContainer", true) if (pathItemNames.length === 0) return null return (