Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
            t[p[i]] = s[p[i]];
    return t;
};
import React from 'react';
import { styled } from 'styleh-components';
import Button from '../BaseButtonAtom';
const Text = styled.span.attrs({
    className: 'button-text',
}) ``;
class ButtonWithIcon extends React.PureComponent {
    render() {
        const _a = this.props, { text, icon, children, qa } = _a, remainingProps = __rest(_a, ["text", "icon", "children", "qa"]);
        return (React.createElement(Button, Object.assign({ qa: qa }, remainingProps),
            icon,
            React.createElement(Text, null, text)));
    }
}
export { ButtonWithIcon };
export default ButtonWithIcon;
//# sourceMappingURL=index.js.map