Repository URL to install this package:
|
Version:
0.0.10 ▾
|
import React from 'react';
import { styled } from 'styleh-components';
import Button from '../BaseButtonAtom';
const StyledButtonText = styled.span.attrs({
className: 'button-text',
}) ``;
class ButtonWithIcon extends React.PureComponent {
render() {
const { text, icon, children, ...remainingProps } = this.props;
return (React.createElement(Button, Object.assign({}, remainingProps),
icon,
React.createElement(StyledButtonText, null, text)));
}
}
export { ButtonWithIcon, StyledButtonText };
export default ButtonWithIcon;
//# sourceMappingURL=index.js.map