import{t as c,j as s}from"./index-i64aAU4V.js";const l=n=>(n==null?void 0:n["en"])||n||null,o=({data:n})=>{const e=c(),r=`/product/${n==null?void 0:n.id}`;return console.log(n),s.jsxs("div",{className:"product_card",children:[s.jsx("div",{className:"image_container",children:s.jsx("img",{onClick:()=>e(r),src:n==null?void 0:n.file,alt:`product ${n.name}`})}),s.jsx("p",{className:"truncate-text",children:l(n==null?void 0:n.name)})]})};export{o as P,l};