Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

Fix DocsHome type error after removing the Tokamak cards

mmngn5ca0bd661360
diff --git a/docs/src/components/DocsHome.tsx b/docs/src/components/DocsHome.tsx
index 59947e8cc..3732ff9b7 100644
--- a/docs/src/components/DocsHome.tsx
+++ b/docs/src/components/DocsHome.tsx
@@ -1,8 +1,18 @@
/* eslint-disable @next/next/no-img-element */
-import { Computer, Search, Rocket, Bot } from 'lucide-react'
+import { Computer, Search, Rocket, Bot, type LucideIcon } from 'lucide-react'
import LogoJanSVG from '@/assets/icons/logo-jan.svg'
-const SECTIONS = [
+type Section = {
+ icon: LucideIcon
+ title: string
+ description: string
+ tags: string
+ href: string
+ external?: boolean
+ chip: string
+}
+
+const SECTIONS: Section[] = [
{
icon: Computer,
title: 'Jan Desktop',
@@ -23,7 +33,14 @@ const SECTIONS = [
},
]
-const COMMON_PATHS = [
+type CommonPath = {
+ icon: LucideIcon
+ title: string
+ href: string
+ external?: boolean
+}
+
+const COMMON_PATHS: CommonPath[] = [
{ icon: Rocket, title: 'Desktop Quickstart', href: '/docs/desktop/quickstart' },
{ icon: Bot, title: 'Jan Agent Quickstart', href: '/docs/agent/quickstart' },
]