aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/app
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/app')
-rw-r--r--apps/web/app/dashboard/highlights/page.tsx20
1 files changed, 20 insertions, 0 deletions
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>
+ );
+}