import React from 'react'; import PropTypes from 'prop-types'; const Button = ({ url, type = 'main', onClick, children, style }) => (
{children}
); Button.propTypes = { children: PropTypes.node, onClick: PropTypes.func, style: PropTypes.object, type: PropTypes.string, url: PropTypes.string, }; Button.defaultProps = { children: '', onClick: () => {}, style: {}, type: 'main', url: '', }; export default Button;