33 lines
682 B
JavaScript
33 lines
682 B
JavaScript
import React from 'react'
|
|
import { connect } from 'react-redux'
|
|
import { compose } from 'ramda'
|
|
import withColours from './withColours'
|
|
import { Trans, translate } from 'react-i18next'
|
|
import './News.css'
|
|
|
|
let News = ({ hidden, colours: { textColourOnWhite } }) =>
|
|
!hidden ? (
|
|
<div className="news-header">
|
|
<i
|
|
className="fa fa-newspaper-o"
|
|
aria-hidden="true"
|
|
style={{
|
|
color: textColourOnWhite
|
|
}}
|
|
/>
|
|
<p>
|
|
<Trans i18nKey="news">
|
|
Le simulateur est maintenant utilisable en anglais
|
|
</Trans>
|
|
</p>
|
|
</div>
|
|
) : null
|
|
|
|
export default compose(
|
|
withColours,
|
|
translate(),
|
|
connect(state => ({
|
|
hidden: state.conversationStarted
|
|
}))
|
|
)(News)
|