summaryrefslogtreecommitdiffstats
path: root/client/src/admin/jsx/MainScreen.jsx
blob: ea2def511b8ec70b472be8b6a4ebd47af853e0ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React, { Fragment } from 'react';
import { WithHover, t, goTo } from '../hocs';

const MainScreen = ({ projects }) => (
  <div className="main-screen">
    <h1 className="main-screen__header">{ t('main-title') }</h1>
    <div className="main-screen__list">
      { !projects.length && (
        <WithHover message="edit-current-project-hover">
          <p className="main-screen__item">{ t('edit-current-project') }</p>
        </WithHover>
      )}
      { !projects.length && (
        <WithHover message="show-saved-projects-hover">
          <p className="main-screen__item">{ t('show-saved-projects') }</p>
        </WithHover>
      )}
      <WithHover message="create-new-project-hover">
        <p className="main-screen__item" onClick={ goTo('creator') }>
          { t('create-new-project') }
        </p>
      </WithHover>
    </div>
  </div>
);

export default MainScreen;