var x=Object.defineProperty,f=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var t=Object.getOwnPropertySymbols;var i=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;var c=(e,r,o)=>r in e?x(e,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[r]=o,l=(e,r)=>{for(var o in r||(r={}))i.call(r,o)&&c(e,o,r[o]);if(t)for(var o of t(r))d.call(r,o)&&c(e,o,r[o]);return e},p=(e,r)=>f(e,g(r));var h=(e,r)=>{var o={};for(var s in e)i.call(e,s)&&r.indexOf(s)<0&&(o[s]=e[s]);if(e!=null&&t)for(var s of t(e))r.indexOf(s)<0&&d.call(e,s)&&(o[s]=e[s]);return o};import{jsx as a,jsxs as n}from"react/jsx-runtime";import{a as y,c as b}from"./ui-components-B24mpb8o.js";import{u as N}from"./use-lang-Cw_jKJYs.js";import{Link as w}from"@inertiajs/react";import{ExternalLink as C}from"lucide-react";import{DynamicIcon as j}from"lucide-react/dynamic";const _=s=>{var m=s,{category:e,className:r}=m,o=h(m,["category","className"]);const{common:u}=N();return a(w,{href:route("category.courses",{category:e.slug}),children:n(y,p(l({className:b("hover:!shadow-card min:h-[110px] bg-secondary-lighter border-secondary-light text-secondary-foreground gap-4 rounded-2xl p-5 !shadow-none",r)},o),{children:[a(j,{size:28,name:e.icon}),a("p",{className:"text-primary mt-4 mb-8 text-xl font-semibold",children:e.title}),n("div",{className:"flex items-center justify-between gap-2",children:[n("p",{className:"text-sm",children:[e.courses_count," ",u.courses]}),a(C,{className:"h-4 w-4"})]})]}))})};export{_ as C};
