blob: 646b1c419566a8f7cd4acbcd79f7b300c401f049 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>
);
}
|