text: (this["webpackJsonpbuildspace-solana"]=this["webpackJsonpbuildspace-solana"]||[]).push([[0],{10:function(e,t,n){},12:function(e,t,n){},14:function(e,t,n){"use strict";n.r(t);var r=n(1),a=n.n(r),c=n(5),o=n.n(c),s=(n(10),n(4)),i=n(2),l=n.n(i),u=n.p+"static/media/twitter-logo.d89d9a86.svg",d=(n(12),n(0)),h="josephrkinney",p="https://twitter.com/".concat(h),b=function(){var e=function(){var e=Object(s.a)(l.a.mark((function e(){var t,n,r;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=window,!(n=t.solana)||!n.isPhantom){e.next=10;break}return console.log("Phantom wallet found"),e.next=6,n.connect({onlyIfTrusted:!0});case 6:r=e.sent,console.log("Connected with Public Key: ",r.publicKey.toString()),e.next=11;break;case 10:alert("Solana object with Phantom not found! Get a Phantom Wallet \ud83d\udc7b");case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.error(e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}();return Object(r.useEffect)((function(){var t=function(){var t=Object(s.a)(l.a.mark((function t(){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return window.addEventListener("load",t),function(){return window.removeEventListener("load",t)}}),[]),Object(d.jsx)("div",{className:"App",children:Object(d.jsxs)("div",{className:"container",children:[Object(d.jsxs)("div",{className:"header-container",children:[Object(d.jsx)("p",{className:"header",children:"\ud83d\uddbc GIF Portal"}),Object(d.jsx)("p",{className:"sub-text",children:"View your GIF collection in the metaverse \u2728"})]}),Object(d.jsxs)("div",{className:"footer-container",children:[Object(d.jsx)("img",{alt:"Twitter Logo",className:"twitter-logo",src:u}),Object(d.jsx)("a",{className:"footer-text",href:p,target:"_blank",rel:"noreferrer",children:"built on @".concat(h)})]})]})})};o.a.render(Object(d.jsx)(a.a.StrictMode,{children:Object(d.jsx)(b,{})}),document.getElementById("root"))}},[[14,1,2]]]);
  //# sourceMappingURL=main.61e50342.chunk.js.map