import{j as i}from"./app-2gKhTNh_.js";import{F as n,a6 as o}from"./index-DQiLWVLj.js";import{m as a}from"./proxy-N6hiut4S.js";const l={visible:{opacity:1},hidden:{opacity:0}},r={visible:{scale:1,y:0,opacity:1,transition:{type:"spring",stiffness:200,damping:25}},hidden:{scale:.7,y:50,opacity:0}};function d({imageSrc:e,onClose:t}){return i.jsxs(a.div,{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/80 backdrop-blur-sm p-4",variants:l,initial:"hidden",animate:"visible",exit:"hidden",onClick:t,children:[i.jsx("button",{className:"absolute top-4 right-4 text-white text-3xl z-10 hover:opacity-75 transition-opacity",onClick:t,children:i.jsx(n,{icon:o})}),i.jsx(a.div,{variants:r,className:"relative flex items-center justify-center w-full h-full max-w-5xl max-h-[90vh]",onClick:s=>s.stopPropagation(),children:i.jsx("img",{src:e,alt:"Gambar Galeri Fullscreen",className:"rounded-lg shadow-2xl w-auto h-auto max-w-full max-h-full object-contain"})})]})}export{d as L};
