"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("../../../../utils/formatDate.cjs.js"),a=require("../../../../src/modules/ResearchEssentialReadings/components/ReadingCard/readingCard.module.css"),d=require("../../../../components/Label/Label.cjs.js"),r=require("../../../../components/Typography/Typography.cjs.js");function h({title:l,link:i,image:o,date:n,label:s,readTime:t}){return e.jsx("a",{href:i,className:a.root,children:e.jsxs("div",{className:a.content,children:[e.jsx("div",{className:a.imagePart,style:{backgroundImage:`url(${o})`},children:s&&e.jsx(d.Label,{color:"white",size:"lg",children:s})}),e.jsxs("div",{className:a.dataPart,children:[e.jsxs("div",{className:a.info,children:[e.jsx(r.Typography,{defaultVariant:"labelSm",emphasis:!0,weight:"medium",color:"color-neutral-500",children:c.formatDate(n)}),!!t&&e.jsxs(e.Fragment,{children:[e.jsx(r.Typography,{defaultVariant:"labelSm",emphasis:!0,weight:"medium",color:"color-neutral-500",children:"•"}),e.jsxs(r.Typography,{defaultVariant:"labelSm",emphasis:!0,weight:"medium",color:"color-neutral-500",children:[t," MIN READ"]})]})]}),e.jsx(r.Typography,{className:a.title,defaultVariant:"headingXs",children:l})]})]})})}exports.ReadingCard=h;
