import type { PublicArticle } from "@/lib/articles-public";
import type { NewsServicesTab } from "@/constants/news-services";
import NewsServicesArticleSection from "@/components/landing-page/news-services-article-section";

type Props = {
  articlesByTab: Record<NewsServicesTab, PublicArticle[]>;
};

export default function ContentLatest({ articlesByTab }: Props) {
  return (
    <NewsServicesArticleSection
      id="konten-terbaru"
      title="Konten Terbaru"
      articlesByTab={articlesByTab}
      exploreHref="#konten-terpopuler"
      exploreLabel="Lihat konten terpopuler"
    />
  );
}
