diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-12-28 12:30:24 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-12-28 12:30:24 +0000 |
| commit | 7956e9fa6772ab57a0794fb7cba7e9d9c0bd7878 (patch) | |
| tree | 10d6e47afed8be007361cd40ec8b05fc52d6d4d9 /apps/web/app | |
| parent | 7dd5b2bc8751911f86448e6c4619b2583d9a4b53 (diff) | |
| download | karakeep-7956e9fa6772ab57a0794fb7cba7e9d9c0bd7878.tar.zst | |
feat: Implement the all highlights page. Fixes #620
Diffstat (limited to 'apps/web/app')
| -rw-r--r-- | apps/web/app/dashboard/highlights/page.tsx | 20 |
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> + ); +} |
