Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

454 B
Raw Blame
import { getContentAPI } from "@/lib/fetchers/get-content-api";
import { ClientOnly } from "@dub/ui";
import { News, NewsArticle } from "./news";

export async function NewsRSC() {
  const { latestNewsArticles } = await getContentAPI();

  return (
    <ClientOnly>
      <News
        articles={
          (Array.isArray(latestNewsArticles)
            ? latestNewsArticles
            : []) as NewsArticle[]
        }
      />
    </ClientOnly>
  );
}