From 7956e9fa6772ab57a0794fb7cba7e9d9c0bd7878 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
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/dashboard/highlights/page.tsx')

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 (
+    <div className="flex flex-col gap-8 rounded-md border bg-background p-4">
+      <span className="flex items-center gap-1 text-2xl">
+        <Highlighter className="size-6" />
+        {t("common.highlights")}
+      </span>
+      <Separator />
+      <AllHighlights highlights={highlights} />
+    </div>
+  );
+}
-- 
cgit v1.3-1-g0d28

