1 | import React from 'react'
|
2 | import PropTypes from 'prop-types'
|
3 | import { InlineImage } from 'SRC'
|
4 | const ColorPicker = ({ alt, className, input, src }) => {
|
5 | return (
|
6 | <label className={className}>
|
7 | {input.value}
|
8 | <input type='radio' {...input} />
|
9 | <InlineImage src={src} alt={alt} />
|
10 | </label>
|
11 | )
|
12 | }
|
13 |
|
14 | ColorPicker.propTypes = {
|
15 | alt: PropTypes.string,
|
16 | className: PropTypes.string,
|
17 | input: PropTypes.object,
|
18 | src: PropTypes.string
|
19 | }
|
20 |
|
21 | export default ColorPicker
|