Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
import { useState } from 'react'
import type { ThreadFolder } from '@/services/projects/types'
/** Home draft intent, not authorization. Route-local lifetime prevents a
* completed conversation's project/assistant leaking into the next draft. */
export function useHomeScope() {
const [project, setProject] = useState<ThreadFolder | null>(null)
return { project, setProject }
}