import React, { PropTypes } from "react"

const GitHubEditLink = ({ baseUrl, fileName, ...props }) => {
  const url = baseUrl + fileName

  return (
    <section {...props}>
      { "Bài viết sai chính tả? Có điểm chưa rõ ràng?" }
      { '  ' }
      <a href={ url } target="_blank">
        { "Sửa bài viết trên Github" }
      </a>
    </section>
  )
}

GitHubEditLink.propTypes = {
  baseUrl: PropTypes.string.isRequired,
  fileName: PropTypes.string.isRequired,
}

export default GitHubEditLink

import React, { PropTypes } from "react"

const GitHubEditLink = ({ baseUrl, fileName, ...props }) => {
  const url = baseUrl + fileName

  return (
    <section {...props}>
      { "Spotted typos or incorrect information?" }
      { '  ' }
      <a href={ url } target="_blank">
        { "Send me a PR on Github" }
      </a>
    </section>
  )
}

GitHubEditLink.propTypes = {
  baseUrl: PropTypes.string.isRequired,
  fileName: PropTypes.string.isRequired,
}

export default GitHubEditLink

Change GIthub PR to English
UI: Change GIthub PR to English
