16 lines
357 B
JavaScript
16 lines
357 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 }) => (
|
|
<button
|
|
disabled={disabled}
|
|
className="blueButton"
|
|
style={{ ...style, background: themeColours.colour }}
|
|
>
|
|
{children}
|
|
</button>
|
|
))
|