import {jsx,jsxs}from'react/jsx-runtime';import {Card,CardContent}from'@admin-layout/tailwind-ui/shardui/card.js';function NewsCard({
  heading,
  imageUrl,
  newsLink,
  date
}) {
  return jsx("div", {
    className: "box-border",
    children: jsx(Card, {
      className: "max-w-md overflow-hidden",
      children: jsxs(CardContent, {
        className: "p-0",
        children: [jsx("a", {
          href: newsLink,
          children: jsx("img", {
            src: imageUrl,
            alt: "",
            className: "h-[400px] w-full object-cover rounded-t-lg"
          })
        }), jsx("div", {
          className: "mt-3 p-5 min-h-[150px]",
          children: jsxs("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] mt-1",
              children: date
            })]
          })
        })]
      })
    })
  });
}export{NewsCard as default};//# sourceMappingURL=newsCard.js.map
