mon-entreprise/source/components/News.js

33 lines
700 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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 vous propose désormais une estimation instantanée !
</Trans>
</p>
</div>
) : null
export default compose(
withColours,
translate(),
connect(state => ({
hidden: state.conversationStarted
}))
)(News)