mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +02:00
28 lines
470 B
JavaScript
28 lines
470 B
JavaScript
|
import React from 'react';
|
||
|
|
||
|
const buttonStyles = {
|
||
|
border: '1px solid #eee',
|
||
|
borderRadius: 3,
|
||
|
backgroundColor: '#FFFFFF',
|
||
|
cursor: 'pointer',
|
||
|
fontSize: 15,
|
||
|
padding: '3px 10px',
|
||
|
margin: 10,
|
||
|
};
|
||
|
|
||
|
const Button = ({ children, onClick }) => (
|
||
|
<button
|
||
|
style={buttonStyles}
|
||
|
onClick={onClick}
|
||
|
>
|
||
|
{children}
|
||
|
</button>
|
||
|
);
|
||
|
|
||
|
Button.propTypes = {
|
||
|
children: React.PropTypes.string.isRequired,
|
||
|
onClick: React.PropTypes.func,
|
||
|
};
|
||
|
|
||
|
export default Button;
|