import {jsx,jsxs}from'react/jsx-runtime';import {Card,CardContent}from'@admin-layout/tailwind-ui/shardui/card.js';function LatestNewsCard({
  heading,
  imageUrl,
  newsLink,
  date
}) {
  return jsx("div", {
    className: "w-full md:w-[48%]",
    children: jsxs(Card, {
      className: "overflow-hidden shadow-none flex flex-col md:flex-row gap-2",
      children: [jsx("a", {
        href: newsLink,
        className: "block shrink-0",
        children: jsx("img", {
          src: imageUrl,
          alt: "",
          className: "object-cover w-full max-w-[150px] md:max-w-[300px] h-[200px] rounded-[20px]"
        })
      }), jsxs(CardContent, {
        className: "p-0 md:pr-0 flex-1 flex flex-col",
        children: [jsx("a", {
          href: newsLink,
          className: "block hover:underline",
          children: jsx("h3", {
            className: "text-xl font-semibold text-gray-900",
            children: heading
          })
        }), jsx("p", {
          className: "text-sm text-[#717171] py-2",
          children: date
        })]
      })]
    })
  });
}export{LatestNewsCard as default};//# sourceMappingURL=latestNewsCard.js.map
