import{r as e,t}from"./jsx-runtime-BbTa8W_M-1776590214964.js";import{t as n}from"./settings-D4bGlTP0-1776590214964.js";import{t as r}from"./button-WiAFyHfP-1776590214964.js";import{t as i}from"./switch-Cb0OQpvv-1776590214964.js";import{a,n as o,o as s,r as c,t as l}from"./card-Cby8flFO-1776590214964.js";import{t as u}from"./badge-DIenkY-h-1776590214964.js";e();var d=t();function f({gateways:e,onConfigure:t}){return e.length===0?(0,d.jsx)(`div`,{className:`text-center p-8 text-muted-foreground border rounded-xl border-dashed`,children:`No SMS gateways found.`}):(0,d.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 pt-4`,children:e.map(e=>(0,d.jsxs)(l,{className:`flex flex-col ${e.is_active?`border-primary/50 shadow-md`:`opacity-70`}`,children:[(0,d.jsxs)(a,{className:`pb-4`,children:[(0,d.jsxs)(`div`,{className:`flex justify-between items-start`,children:[(0,d.jsx)(s,{className:`text-xl`,children:e.name}),(0,d.jsx)(i,{checked:e.is_active,onCheckedChange:()=>t(e)})]}),(0,d.jsx)(c,{className:`line-clamp-2`,children:e.description})]}),(0,d.jsx)(o,{className:`mt-auto space-y-4`,children:(0,d.jsxs)(`div`,{className:`flex justify-between items-center pt-4 border-t`,children:[e.is_active?(0,d.jsx)(u,{className:`bg-green-600`,children:`Active Provider`}):(0,d.jsx)(u,{variant:`outline`,className:`text-muted-foreground`,children:`Inactive`}),(0,d.jsxs)(r,{variant:`ghost`,size:`sm`,onClick:()=>t(e),children:[(0,d.jsx)(n,{className:`w-4 h-4 mr-2`}),` Configure`]})]})})]},e.id))})}export{f as default};