mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
51 lines
1.7 KiB
TypeScript
51 lines
1.7 KiB
TypeScript
import {
|
|
IconArrowBigUpLines,
|
|
IconChartBar,
|
|
IconDashboard,
|
|
IconFolder,
|
|
IconGavel,
|
|
IconMapRoute,
|
|
IconSettings,
|
|
IconTerminal2,
|
|
IconWand,
|
|
IconZoom
|
|
} from '@tabler/icons-react'
|
|
import { usePage } from '@inertiajs/react'
|
|
import StyledSidebar from '~/components/StyledSidebar'
|
|
import { getServiceLink } from '~/lib/navigation'
|
|
|
|
export default function SettingsLayout({ children }: { children: React.ReactNode }) {
|
|
const { aiAssistantName } = usePage<{ aiAssistantName: string }>().props
|
|
|
|
const navigation = [
|
|
{ name: aiAssistantName, href: '/settings/models', icon: IconWand, current: false },
|
|
{ name: 'Apps', href: '/settings/apps', icon: IconTerminal2, current: false },
|
|
{ name: 'Benchmark', href: '/settings/benchmark', icon: IconChartBar, current: false },
|
|
{ name: 'Content Explorer', href: '/settings/zim/remote-explorer', icon: IconZoom, current: false },
|
|
{ name: 'Content Manager', href: '/settings/zim', icon: IconFolder, current: false },
|
|
{ name: 'Maps Manager', href: '/settings/maps', icon: IconMapRoute, current: false },
|
|
{
|
|
name: 'Service Logs & Metrics',
|
|
href: getServiceLink('9999'),
|
|
icon: IconDashboard,
|
|
current: false,
|
|
target: '_blank',
|
|
},
|
|
{
|
|
name: 'Check for Updates',
|
|
href: '/settings/update',
|
|
icon: IconArrowBigUpLines,
|
|
current: false,
|
|
},
|
|
{ name: 'System', href: '/settings/system', icon: IconSettings, current: false },
|
|
{ name: 'Legal Notices', href: '/settings/legal', icon: IconGavel, current: false },
|
|
]
|
|
|
|
return (
|
|
<div className="min-h-screen flex flex-row bg-stone-50/90">
|
|
<StyledSidebar title="Settings" items={navigation} />
|
|
{children}
|
|
</div>
|
|
)
|
|
}
|