mirror of
https://github.com/penxio/penx.git
synced 2026-04-19 03:03:06 -04:00
9 lines
202 B
TypeScript
9 lines
202 B
TypeScript
import { atom, useAtom } from 'jotai'
|
|
|
|
const buyDialogAtom = atom<boolean>(false)
|
|
|
|
export function useBuyDialog() {
|
|
const [isOpen, setIsOpen] = useAtom(buyDialogAtom)
|
|
return { isOpen, setIsOpen }
|
|
}
|