swagger-api/swagger-editor

View on GitHub
src/standalone/topbar/components/AboutMenu.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react"
import PropTypes from "prop-types"

import DropdownMenu from "./DropdownMenu"

const AboutMenu = ({ getComponent, ...rest }) => {
  const Link = getComponent("Link")

  return (
    <DropdownMenu {...rest}>
      <li><Link href="https://swagger.io/tools/swagger-editor/" target="_blank">About Swagger Editor</Link></li>
      <li><Link href="https://swagger.io/docs/open-source-tools/swagger-editor/" target="_blank">View Docs</Link></li>
      <li><Link href="https://github.com/swagger-api/swagger-editor" target="_blank">View on GitHub</Link></li>
    </DropdownMenu>
  )
}

AboutMenu.propTypes = {
  getComponent: PropTypes.func.isRequired,
}


export default AboutMenu