-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-setupstore-js-b585dc08658a5d2b8ad1.js
2 lines (2 loc) · 1.72 KB
/
component---src-pages-setupstore-js-b585dc08658a5d2b8ad1.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{3014:function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),r=n.n(a),c=n("ACV0"),l=n("P3Am"),i=n("Jje6"),u=n("ww3E"),o=n("LXcg");t.default=function(e){e.number,e.iconOnly,e.text;var t=Object(a.useState)(""),n=t[0],s=t[1];return r.a.createElement(i.a,null,r.a.createElement(c.a,{level:3},"Give it a name"),r.a.createElement(l.a,{placeholder:"name",value:n,onChange:function(e){return s(e.target.value)}}),r.a.createElement(i.a,{direction:"row"},r.a.createElement(u.a,{primary:!0,label:"Setup",onClick:function(){return n&&Object(o.d)("Store",{name:n})}})))}},Jje6:function(e,t,n){"use strict";var a=n("zLVn"),r=n("q1tI"),c=n.n(r),l=n("4416"),i=n("otPn");t.a=function(e){var t=e.children,n=Object(a.a)(e,["children"]),r=c.a.useContext(l.a);return n=Object.assign({margin:{left:"0",right:"0",top:"small",bottom:"0"},width:{max:["xxsmall","xsmall","small"].includes(r)?"100%":"80%"},gap:"small"},n),c.a.createElement(i.a,n,t)}},ww3E:function(e,t,n){"use strict";var a=n("zLVn"),r=n("q1tI"),c=n.n(r),l=n("T1Te"),i=n("Jje6");t.a=function(e){var t=e.onClick,n=e.disabled,u=e.message,o=Object(a.a)(e,["onClick","disabled","message"]),s=Object(r.useState)(!1),m=s[0],f=s[1];return c.a.createElement(i.a,null,c.a.createElement(l.a,Object.assign({},o,{primary:!0,onClick:function(){var e=t&&t();e&&e.then&&(f(!0),e.then((function(e){return f(!1)})))},disabled:n||m})),c.a.createElement(i.a,{margin:"0",justify:"center"},u))}},zLVn:function(e,t,n){"use strict";function a(e,t){if(null==e)return{};var n,a,r={},c=Object.keys(e);for(a=0;a<c.length;a++)n=c[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}n.d(t,"a",(function(){return a}))}}]);
//# sourceMappingURL=component---src-pages-setupstore-js-b585dc08658a5d2b8ad1.js.map