import{j as e,t as o,r as m,_ as a}from"./index-Bkt-lHwp.js";import{T as n}from"./TopNav-CTiG_4oP.js";function N(){return e.jsxDEV(e.Fragment,{children:[e.jsxDEV(n,{href:"/",title:"Notifications"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:10,columnNumber:4},this),e.jsxDEV(l,{},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:11,columnNumber:4},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:9,columnNumber:3},this)}function l(){const{notifications:i}=o();m.useEffect(()=>{i.length&&localStorage.setItem("lastNotification",i[0].id)},[]);const r=({title:s,id:t})=>e.jsxDEV("span",{className:"relative flex w-full",children:[s,!1]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:58,columnNumber:4},this);return i.length?e.jsxDEV("div",{className:"my-4 grid gap-4 overflow-hidden",children:i.map((s,t)=>e.jsxDEV(a,{title:e.jsxDEV(r,{title:s.title,id:t},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:71,columnNumber:13},this),header:s.head&&e.jsxDEV("img",{alt:"Reference Image",src:s.head,className:"h-auto max-h-10rem min-w-min w-12 mx-auto"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:74,columnNumber:8},this),footer:e.jsxDEV("p",{className:"text-sm text-500 m-0",children:new Date(s.createdAt).toDateString()},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:82,columnNumber:7},this),className:"w-20rem md:w-25rem lg:28rem mx-auto shadow-2 mb-1",children:e.jsxDEV("p",{className:"m-0 text-700",children:s.text},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:89,columnNumber:6},this)},t,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:70,columnNumber:5},this))},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:68,columnNumber:3},this):e.jsxDEV(c,{},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:65,columnNumber:36},this)}function c(){return e.jsxDEV("div",{className:"flex flex-column align-items-center justify-content-center my-4",children:[e.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"text-xl bg-primary h-8rem w-8rem p-4 border-circle",children:e.jsxDEV("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0M3.124 7.5A8.969 8.969 0 0 1 5.292 3m13.416 0a8.969 8.969 0 0 1 2.168 4.5"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:107,columnNumber:5},this)},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:99,columnNumber:4},this),e.jsxDEV("p",{className:"text-gray-800 font-semibold text-lg",children:"No Notifications Available"},void 0,!1,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:114,columnNumber:4},this)]},void 0,!0,{fileName:"C:/Users/pc/Desktop/otp-website-mainsmmprovider-/src/user/pages/Notifications/index.jsx",lineNumber:98,columnNumber:3},this)}export{N as default};
