import{o as e,r as t,t as n}from"./jsx-runtime-BbTa8W_M-1776590214964.js";import{n as r}from"./app-CXDQ5oEH-1776590214964.js";import{t as i}from"./AdminLayout-gmPnZHB9-1776590214964.js";import{t as a}from"./credit-card-_YZG-Thc-1776590214964.js";import o from"./GatewayList-Bk2UHbeX-1776590214964.js";import s from"./ConfigModal-CqB8pxo2-1776590214964.js";var c=e(t(),1),l=n();function u({gateways:e,currencies:t,countries:n}){let[u,d]=(0,c.useState)(null),[f,p]=(0,c.useState)(!1);return(0,l.jsxs)(i,{children:[(0,l.jsx)(r,{title:`Payment Gateways`}),(0,l.jsxs)(`div`,{className:`max-w-6xl mx-auto space-y-6`,children:[(0,l.jsxs)(`div`,{className:`flex items-center gap-3 mb-6`,children:[(0,l.jsx)(a,{className:`w-8 h-8 text-primary`}),(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`h2`,{className:`text-2xl font-bold tracking-tight`,children:`Payment Gateways`}),(0,l.jsx)(`p`,{className:`text-muted-foreground`,children:`Manage payment modules, country availability, API keys, and currencies.`})]})]}),(0,l.jsx)(o,{gateways:e,onConfigure:e=>{d(e),p(!0)}})]}),(0,l.jsx)(s,{isOpen:f,onClose:()=>p(!1),gateway:u,currencies:t,countries:n})]})}export{u as default};