mirror of
https://github.com/langgenius/dify.git
synced 2026-10-24 23:33:12 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
11 lines
314 B
TypeScript
11 lines
314 B
TypeScript
'use client'
|
|
|
|
import { atom } from 'jotai'
|
|
import { nextParamsAtom } from '@/app/components/next-route-state/atoms'
|
|
|
|
export const deploymentRouteAppInstanceIdAtom = atom((get) => {
|
|
const appInstanceId = get(nextParamsAtom).appInstanceId
|
|
|
|
return typeof appInstanceId === 'string' ? appInstanceId : undefined
|
|
})
|