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/BlueButton.js
2018-04-23 15:41:48 +02:00

16 lines
386 B
JavaScript

import React from 'react'
import './BlueButton.css'
import { connect } from 'react-redux'
export default connect(state => ({
themeColours: state.themeColours
}))(({ themeColours, children, disabled, style, onClick }) => (
<button
disabled={disabled}
onClick={onClick}
className="blueButton"
style={{ ...style, background: themeColours.colour }}
>
{children}
</button>
))