Files
Folo/apps/server/client/atoms/app.ts
T
2024-10-30 18:37:12 +08:00

10 lines
281 B
TypeScript

import { createAtomHooks } from "@follow/utils/jotai"
import { atom } from "jotai"
type Deeplink = {
deeplink: string
fallbackUrl?: string
}
export const [, , useOpenInAppDeeplink, , getOpenInAppDeeplink, setOpenInAppDeeplink] =
createAtomHooks(atom<Deeplink | null>(null))