UNPKG

coinforbarter-react

Version:

CoinForBarter React Library - Integrate cryptocurrency payments for goods and services in your React App

26 lines 5.39 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoinForBarterButton = void 0; var react_1 = require("react"); var hooks_1 = require("./hooks"); require("../css/index.css"); var CoinForBarterButton = function (_a) { var config = _a.config, text = _a.text; var pay = hooks_1.useCoinForBarter(config); return (react_1.default.createElement("button", { className: "inline-coinforbarter-button-style-xxy", onClick: function (e) { e.preventDefault(); pay(); } }, !text && (react_1.default.createElement("svg", { width: "44", height: "41", viewBox: "0 0 44 41", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, react_1.default.createElement("path", { d: "M10.1064 27.5603C10.1064 29.3487 15.4133 30.7905 21.9541 30.7905C28.495 30.7905 33.8018 29.3442 33.8018 27.5603C33.8018 27.4473 33.7813 27.3353 33.7415 27.2295C33.1312 28.8569 28.0859 30.1355 21.9519 30.1355C15.8179 30.1355 10.7748 28.8636 10.1623 27.2295C10.123 27.3353 10.104 27.4475 10.1064 27.5603Z" }), react_1.default.createElement("path", { d: "M10.422 26.6394V26.6729V26.7087C10.5405 27.0664 11.3966 27.842 13.8578 28.4769C16.053 29.0425 18.93 29.3532 21.959 29.3532C24.988 29.3532 27.8627 29.0425 30.0579 28.4769C32.5169 27.842 33.3753 27.0664 33.4938 26.7087V26.6729V26.6394C33.3753 26.2817 32.5191 25.506 30.0579 24.8712C27.9521 24.3685 25.7998 24.0853 23.6356 24.0262L23.1035 24.0083H23.0655H22.5424H22.5H21.9635H21.4247H21.3823H20.8592H20.8212L20.2936 24.0262H20.2735C18.113 24.0859 15.9645 24.3691 13.8623 24.8712C11.3966 25.506 10.5405 26.2795 10.422 26.6394Z" }), react_1.default.createElement("path", { d: "M13.7099 18.9025C13.4551 20.1409 16.9334 21.9069 21.478 22.8435C26.0226 23.7802 29.919 23.5343 30.1738 22.2959C30.1881 22.2168 30.1881 22.1358 30.1738 22.0567C29.5188 23.1006 25.8304 23.2616 21.5697 22.383C17.309 21.5045 13.9894 19.8973 13.7993 18.679C13.7563 18.7475 13.726 18.8232 13.7099 18.9025Z" }), react_1.default.createElement("path", { d: "M14.0233 18.2878L14.0054 18.3213V18.3571C14.0054 18.4331 14.1484 19.1193 16.1581 20.1029C17.9161 20.9127 19.7655 21.5071 21.6662 21.8734C23.3207 22.2278 25.0062 22.418 26.6981 22.4412C26.9484 22.4412 27.1921 22.4412 27.4246 22.4255C29.66 22.316 30.0534 21.737 30.0914 21.6722L30.1093 21.6409V21.6029C30.1093 21.5291 29.9663 20.8429 27.9589 19.8593C26.5736 19.2091 25.1248 18.7042 23.6356 18.3526L23.4813 18.3168L23.2868 18.2699H23.2689H23.2421L23.0834 18.2319L22.8845 18.1894H22.8532L22.6497 18.1447L22.4821 18.1089L22.3301 18.0776L22.1065 18.0352H22.0708H22.0529L21.8293 17.9949L21.6885 17.9681H21.6617L21.2951 17.9033H21.2772C19.7699 17.6251 18.2381 17.5022 16.7058 17.5367C14.4703 17.6462 14.0702 18.2319 14.0233 18.2878Z" }), react_1.default.createElement("path", { d: "M15.192 15.3393C15.1892 15.4076 15.1991 15.4758 15.221 15.5405C15.572 16.5576 18.8827 16.3363 22.6158 15.0487C26.349 13.7611 29.0985 11.89 28.7386 10.8707C28.7157 10.8064 28.6817 10.7466 28.638 10.6941C28.6112 11.7425 25.9846 13.4615 22.4861 14.6709C18.9877 15.8803 15.8581 16.1463 15.192 15.3393Z" }), react_1.default.createElement("path", { d: "M16.8062 13.2291C15.5968 14.0316 15.1721 14.6575 15.1765 14.9526V14.9884L15.1989 15.0196C15.3442 15.2097 15.8494 15.3997 16.8173 15.3997C17.0409 15.3997 17.2778 15.3997 17.5439 15.3684C19.1833 15.196 20.7961 14.8275 22.3478 14.2708C23.9123 13.7531 25.4083 13.0475 26.803 12.1695C28.0146 11.3692 28.4393 10.7411 28.4348 10.4482V10.408L28.4125 10.3789C28.2336 10.1554 27.5183 9.91395 26.0653 10.0302C24.7647 10.1592 23.4808 10.4213 22.2338 10.8126L22.046 10.8707L21.9275 10.9087H21.9074L21.6078 11.0071H21.5833L21.277 11.1121L21.0177 11.2038L20.9708 11.2194H20.9596H20.9462L20.6489 11.329H20.6265L20.4521 11.396L20.327 11.4452C19.095 11.9169 17.9152 12.5147 16.8062 13.2291Z" }), react_1.default.createElement("path", { d: "M6.09164 17.7245C5.21312 17.8318 4.18035 18.071 3.43596 18.6186C3.66047 13.9933 5.61685 9.62165 8.91636 6.37241C12.2159 3.12317 16.617 1.23414 21.2453 1.08067C25.8736 0.927201 30.3902 2.52053 33.8977 5.54405C37.4052 8.56758 39.6469 12.8 40.1773 17.4003L40.8479 17.3243C40.3063 12.5423 37.9806 8.14062 34.3353 4.99847C30.69 1.85633 25.9935 0.205027 21.1839 0.374399C16.3743 0.543772 11.8056 2.52135 8.39034 5.91213C4.97511 9.30292 2.96477 13.8573 2.76086 18.6656C1.99188 18.1715 0.831698 17.9659 0.00012207 17.9748C1.32796 18.8824 2.50379 20.0851 3.19677 21.5671C3.73998 20.0314 4.88451 18.7908 6.09164 17.7245Z" }), react_1.default.createElement("path", { d: "M43.9154 22.7318C42.5741 21.8243 41.4095 20.6238 40.7188 19.1395C40.1755 20.673 39.031 21.9137 37.8239 22.98C38.7024 22.8727 39.7352 22.6335 40.4796 22.0858C40.2518 26.7087 38.294 31.0768 34.995 34.3232C31.696 37.5696 27.2968 39.4568 22.6709 39.6102C18.045 39.7636 13.5305 38.172 10.0237 35.1513C6.51684 32.1306 4.27401 27.9017 3.74045 23.3041L3.06982 23.3801C3.59337 28.0436 5.81415 32.3516 9.30909 35.4834C12.804 38.6151 17.3289 40.3518 22.0217 40.3626C26.9562 40.3649 31.7009 38.4613 35.2655 35.0491C38.8301 31.637 40.9392 26.9799 41.1524 22.05C41.9214 22.5351 43.0838 22.743 43.9154 22.7318Z" }))), text ? text : 'Pay with CoinForBarter')); }; exports.CoinForBarterButton = CoinForBarterButton; //# sourceMappingURL=coinforbarter-button.js.map