1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 22:45:01 +00:00
mon-entreprise/source/components/News.js
2018-04-27 20:19:25 +02:00

32 lines
700 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)