Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
import { Head, usePage } from '@inertiajs/react'
import ChatComponent from '~/components/chat'
export default function Chat(props: { settings: { chatSuggestionsEnabled: boolean } }) {
const { aiAssistantName } = usePage<{ aiAssistantName: string }>().props
return (
<div className="w-full h-full">
<Head title={aiAssistantName} />
<ChatComponent enabled={true} suggestionsEnabled={props.settings.chatSuggestionsEnabled} />
</div>
)
}