mirror of
https://github.com/langgenius/dify.git
synced 2026-06-20 17:21:06 +08:00
14 lines
286 B
TypeScript
14 lines
286 B
TypeScript
'use client'
|
|
|
|
import { atom, useAtomValue, useSetAtom } from 'jotai'
|
|
|
|
const gotoAnythingOpenAtom = atom(false)
|
|
|
|
export function useGotoAnythingOpen() {
|
|
return useAtomValue(gotoAnythingOpenAtom)
|
|
}
|
|
|
|
export function useSetGotoAnythingOpen() {
|
|
return useSetAtom(gotoAnythingOpenAtom)
|
|
}
|