From 7956e9fa6772ab57a0794fb7cba7e9d9c0bd7878 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sat, 28 Dec 2024 12:30:24 +0000 Subject: feat: Implement the all highlights page. Fixes #620 --- apps/web/app/dashboard/highlights/page.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 apps/web/app/dashboard/highlights/page.tsx (limited to 'apps/web/app') diff --git a/apps/web/app/dashboard/highlights/page.tsx b/apps/web/app/dashboard/highlights/page.tsx new file mode 100644 index 00000000..646b1c41 --- /dev/null +++ b/apps/web/app/dashboard/highlights/page.tsx @@ -0,0 +1,20 @@ +import AllHighlights from "@/components/dashboard/highlights/AllHighlights"; +import { Separator } from "@/components/ui/separator"; +import { useTranslation } from "@/lib/i18n/server"; +import { api } from "@/server/api/client"; +import { Highlighter } from "lucide-react"; + +export default async function HighlightsPage() { + const { t } = await useTranslation(); + const highlights = await api.highlights.getAll({}); + return ( +
+ + + {t("common.highlights")} + + + +
+ ); +} -- cgit v1.2.3-70-g09d2