UNPKG

klioso

Version:

Multi-Service Provider Management System for WordPress and Web Development with Enhanced Scanner

2 lines (1 loc) 2.47 kB
import{j as e,L as i}from"./app-DZ07njAd.js";import{A as n}from"./AuthenticatedLayout-BKOGad_C.js";import{B as c}from"./Button-D6Jcp-tA.js";import{B as r}from"./BackButton-DWEPPwYa.js";import{D as d}from"./DeleteButton-BGbjowl2.js";import"./ApplicationLogo-GDc3W5ND.js";import"./transition-BCwV6od8.js";function f({hostingProvider:s}){const a=[];return s.provides_hosting&&a.push("Web Hosting"),s.provides_dns&&a.push("DNS Management"),s.provides_email&&a.push("Email Services"),s.provides_domain_registration&&a.push("Domain Registration"),e.jsx(n,{header:e.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Provider Details"}),children:e.jsx("div",{className:"max-w-4xl mx-auto py-8",children:e.jsxs("div",{className:"bg-white rounded-lg shadow p-6 max-w-xl mx-auto",children:[e.jsxs("div",{className:"flex justify-between items-center mb-4",children:[e.jsx(r,{fallbackRoute:"/hosting-providers"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(c,{as:i,href:`/hosting-providers/${s.id}/edit`,size:"sm",children:"Edit"}),e.jsx(d,{resource:s,resourceName:"provider",deleteRoute:`/hosting-providers/${s.id}`,onSuccess:()=>window.location.href="/hosting-providers"})]})]}),e.jsx("h2",{className:"text-xl font-bold mb-4",children:s.name}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Description:"})," ",s.description||"-"]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Website:"}),s.website?e.jsx("a",{href:s.website,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline ml-1",children:s.website}):"-"]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Contact Info:"})," ",s.contact_info||"-"]}),e.jsxs("div",{className:"mb-4",children:[e.jsx("strong",{children:"Services:"}),e.jsx("div",{className:"flex flex-wrap gap-2 mt-1",children:a.length>0?a.map((t,l)=>e.jsx("span",{className:"px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full",children:t},l)):e.jsx("span",{className:"text-gray-500",children:"None specified"})})]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Notes:"})," ",s.notes||"-"]}),e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Created:"})," ",new Date(s.created_at).toLocaleDateString()]}),s.updated_at&&s.updated_at!==s.created_at&&e.jsxs("div",{className:"mb-2",children:[e.jsx("strong",{children:"Updated:"})," ",new Date(s.updated_at).toLocaleDateString()]})]})})})}export{f as default};