Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

560 B
Raw Blame
'use client'

import { atom } from 'jotai'
import { atomWithResolvedSuspenseQuery } from '@/utils/query-atoms'
import { systemFeaturesQueryOptions } from './client'

const systemFeaturesQueryAtom = atomWithResolvedSuspenseQuery(() => systemFeaturesQueryOptions())

const systemFeaturesAtom = atom((get) => {
  return get(systemFeaturesQueryAtom).data
})

export const deploymentEditionAtom = atom((get) => {
  return get(systemFeaturesAtom).deployment_edition
})

export const rbacEnabledAtom = atom((get) => {
  return get(systemFeaturesAtom).rbac_enabled
})