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.

570 B
Raw Blame
import type { ComponentProps } from 'react'
import { NuqsTestingAdapter } from 'nuqs/adapters/testing'
import { QueryStateProvider } from './index'

/** The real nuqs test adapter, with the same group registration as production. */
export function QueryTestingAdapter({
  groups,
  children,
  ...options
}: ComponentProps<typeof NuqsTestingAdapter> &
  Pick<ComponentProps<typeof QueryStateProvider>, 'groups'>) {
  return (
    <NuqsTestingAdapter {...options}>
      <QueryStateProvider groups={groups}>{children}</QueryStateProvider>
    </NuqsTestingAdapter>
  )
}