/**
 * Copyright (c) 2017-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 */

const React = require('react');

const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const GridBlock = CompLibrary.GridBlock;

const translate = require('../../server/translate.js').translate;

class Help extends React.Component {
  render() {
    const supportLinks = [
      {
        content: (
          <translate>
            Find what you're looking for in our detailed documentation and
            guides.\n\n- Learn how to [get
            started](/jest/docs/en/getting-started.html) with Jest.\n-
            [Troubleshoot](/jest/docs/en/troubleshooting.html) problems with
            Jest.\n- Learn how to [configure
            Jest](/jest/docs/en/configuration.html).\n- Look at the full [API
            Reference](/jest/docs/en/api.html).
          </translate>
        ),
        title: <translate>Browse the docs</translate>,
      },
      {
        content: (
          <translate>
            Ask questions and find answers from other Jest users like you.\n\n-
            Join the
            [#jest](https://discordapp.com/channels/102860784329052160/103622435865104384)
            channel on [Reactiflux](http://www.reactiflux.com/), a Discord
            community.\n- Many members of the community use Stack Overflow. Read
            through the [existing
            questions](https://stackoverflow.com/questions/tagged/jestjs) tagged
            with **jestjs** or [ask your
            own](https://stackoverflow.com/questions/ask)!
          </translate>
        ),
        title: <translate>Join the community</translate>,
      },
      {
        content: (
          <translate>
            Find out what's new with Jest.\n\n- Follow
            [Jest](https://twitter.com/fbjest) on Twitter.\n- Subscribe to the
            [Jest blog](/jest/blog/).\n- Look at the
            [changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md).
          </translate>
        ),
        title: <translate>Stay up to date</translate>,
      },
    ];

    return (
      <div className="docMainWrapper wrapper">
        <Container className="mainContainer documentContainer postContainer">
          <div className="post">
            <header className="postHeader">
              <h2>
                <translate>Need help?</translate>
              </h2>
            </header>
            <p>
              <translate>
                Jest is worked on full-time by Facebook's JavaScript Foundation team.
                Team members are often around and available for questions.
              </translate>
            </p>
            <GridBlock contents={supportLinks} layout="threeColumn" />
          </div>
        </Container>
      </div>
    );
  }
}

Help.defaultProps = {
  language: 'en',
};

module.exports = Help;

@@ -2795,14 +2795,8 @@
 tion
- team.
 %0A   
@@ -2807,16 +2807,22 @@
         
+ team.
  Team me

Fix prettier lint error in website/pages/en/help.js (#4934)