diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-12-30 12:15:35 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-12-30 12:15:35 +0000 |
| commit | 5902664658a36e4afc81327eea9f8eef05561bcb (patch) | |
| tree | b72415e988efb5cd95e4a28634b0b53bf125b168 /apps/web/components/settings/sidebar/items.tsx | |
| parent | 179f00b15525b024b6823088ef8fb94b7106b4f0 (diff) | |
| download | karakeep-5902664658a36e4afc81327eea9f8eef05561bcb.tar.zst | |
refactor: Refactor sidebar into a shared component
Diffstat (limited to 'apps/web/components/settings/sidebar/items.tsx')
| -rw-r--r-- | apps/web/components/settings/sidebar/items.tsx | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/apps/web/components/settings/sidebar/items.tsx b/apps/web/components/settings/sidebar/items.tsx deleted file mode 100644 index f76d494a..00000000 --- a/apps/web/components/settings/sidebar/items.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import React from "react"; -import { TFunction } from "i18next"; -import { - ArrowLeft, - Download, - KeyRound, - Link, - Rss, - Sparkles, - User, -} from "lucide-react"; - -export const settingsSidebarItems = ( - t: TFunction, -): { - name: string; - icon: JSX.Element; - path: string; -}[] => [ - { - name: t("settings.back_to_app"), - icon: <ArrowLeft size={18} />, - path: "/dashboard/bookmarks", - }, - { - name: t("settings.info.user_info"), - icon: <User size={18} />, - path: "/settings/info", - }, - { - name: t("settings.ai.ai_settings"), - icon: <Sparkles size={18} />, - path: "/settings/ai", - }, - { - name: t("settings.feeds.rss_subscriptions"), - icon: <Rss size={18} />, - path: "/settings/feeds", - }, - { - name: t("settings.import.import_export"), - icon: <Download size={18} />, - path: "/settings/import", - }, - { - name: t("settings.api_keys.api_keys"), - icon: <KeyRound size={18} />, - path: "/settings/api-keys", - }, - { - name: t("settings.broken_links.broken_links"), - icon: <Link size={18} />, - path: "/settings/broken-links", - }, -]; |
