(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9223],{27290:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/prayers",function(){return i(84351)}])},84351:function(e,n,i){"use strict";i.r(n);var s=i(85893),r=i(67294),c=i(9473),l=i(16690);i(41664);var t=i(39332),d=i(86886),h=i(15861),x=i(66242),a=i(72882),j=i(7906),o=i(53184),Z=i(53816),u=i(98102),p=i(295),f=i(90629),_=i(68269),m=i(10633);i(21725),n.default=function(e){let n=(0,c.I0)(),{push:i}=(0,t.useRouter)(),v=(0,c.v9)(l.V_),w=(0,c.v9)(l.gs);(0,c.v9)(l.MF);let y=(0,c.v9)(l.hU);console.log("prayer",w);let[g,k]=(0,r.useState)(1);return(0,r.useEffect)(()=>{n((0,l.hn)({page:g}))},[g]),(0,s.jsxs)(d.ZP,{container:!0,spacing:6,children:[(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(_.Z,{direction:"row",children:(0,s.jsx)(h.Z,{variant:"h5",children:"Prayer Requests"})})}),(0,s.jsx)(d.ZP,{item:!0,xs:12,children:(0,s.jsx)(x.Z,{children:(0,s.jsxs)(f.Z,{sx:{width:"100%",overflow:"hidden"},children:[v?(0,s.jsx)(h.Z,{variant:"h5",sx:{my:3},textAlign:"center",children:"Loading..."}):(0,s.jsx)(a.Z,{sx:{maxHeight:440},children:(0,s.jsxs)(j.Z,{stickyHeader:!0,"aria-label":"sticky table",children:[(0,s.jsx)(o.Z,{children:(0,s.jsxs)(Z.Z,{children:[(0,s.jsx)(u.Z,{children:"ID"}),(0,s.jsx)(u.Z,{children:"Name"}),(0,s.jsx)(u.Z,{children:"Email"}),(0,s.jsx)(u.Z,{children:"Contact"}),(0,s.jsx)(u.Z,{children:"Time"}),(0,s.jsx)(u.Z,{children:"Description"})]})}),(0,s.jsx)(p.Z,{children:w.map(e=>(0,s.jsxs)(Z.Z,{hover:!0,role:"checkbox",tabIndex:-1,children:[(0,s.jsx)(u.Z,{children:(0,s.jsx)("span",{children:e.id})}),(0,s.jsx)(u.Z,{children:(0,s.jsx)("span",{children:e.name})}),(0,s.jsx)(u.Z,{children:(0,s.jsx)("span",{children:e.email})}),(0,s.jsx)(u.Z,{children:(0,s.jsx)("span",{children:e.contact})}),(0,s.jsx)(u.Z,{children:(0,s.jsx)("span",{children:e.time})}),(0,s.jsx)(u.Z,{children:(0,s.jsx)("span",{children:e.description})})]},e.id))})]})}),(0,s.jsx)(_.Z,{direction:"row",sx:{my:4,display:v?"none":""},justifyContent:"center",children:(0,s.jsx)(m.Z,{count:y,onChange:function(e,n){k(n)}})})]})})})]})}}},function(e){e.O(0,[2657,3795,7169,2138,9774,2888,179],function(){return e(e.s=27290)}),_N_E=e.O()}]);