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.

384 B
Raw Blame
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 }
}