Files
shakespeare/src/lib/settingsItems.ts
T
Alex Gleason 37c19be7ee Fix versioning: start at 9.9.1, move changelog into app shell
Bump starting version from 9.9.0 to 9.9.1. Move the /changelog page
from a standalone layout into AppLayout so the project sidebar is
available. Remove it from the settings nav since it's its own page.
2026-04-02 02:19:50 -05:00

90 lines
1.8 KiB
TypeScript

import { Bot, GitBranch, Database, Wifi, Settings2, Info, Settings, Rocket } from 'lucide-react';
export interface SettingsItem {
id: string;
icon: React.ComponentType<{ className?: string }>;
title: string;
href: string;
}
export interface SettingsCategory {
id: string;
title: string;
items: SettingsItem[];
}
/**
* Get the categorized list of settings items with translations
* @param t - Translation function from useTranslation hook
* @returns Array of settings categories with translated items
*/
export const getSettingsCategories = (t: (key: string) => string): SettingsCategory[] => [
{
id: 'general',
title: t('general'),
items: [
{
id: 'preferences',
icon: Settings2,
title: t('preferences'),
href: '/settings/preferences',
},
],
},
{
id: 'integrations',
title: t('integrations'),
items: [
{
id: 'ai',
icon: Bot,
title: t('aiSettings'),
href: '/settings/ai',
},
{
id: 'git',
icon: GitBranch,
title: t('gitSettings'),
href: '/settings/git',
},
{
id: 'deploy',
icon: Rocket,
title: t('deploySettings'),
href: '/settings/deploy',
},
{
id: 'nostr',
icon: Wifi,
title: t('nostrSettings'),
href: '/settings/nostr',
},
],
},
{
id: 'advanced',
title: t('advanced'),
items: [
{
id: 'storage',
icon: Database,
title: t('storageSettings'),
href: '/settings/storage',
},
{
id: 'system',
icon: Settings,
title: t('systemSettings'),
href: '/settings/system',
},
{
id: 'about',
icon: Info,
title: t('aboutShakespeare'),
href: '/settings/about',
},
],
},
];