This commit is contained in:
Ivan Rezchikov
2026-07-11 21:21:38 +03:00
parent 18161f4604
commit 4c42b5aa1d
20 changed files with 369 additions and 260 deletions
+3
View File
@@ -3,8 +3,11 @@ import { NewsCard } from "@/components/news-card";
import { Button } from "@/components/ui/button";
import { getPages } from "@/lib/pages/repository";
import { getCurrentUser } from "@/lib/user";
import { Metadata } from "next";
import Link from "next/link";
export const metadata: Metadata = { title: "News" };
export default async function News() {
const user = await getCurrentUser();
const news = await getPages("NEWS", "PUBLISHED");