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.

446 B
Raw Blame
'use client'

import { useSuspenseQuery } from '@tanstack/react-query'
import { useLocale } from '#i18n'
import { consoleQuery } from '@/service/console'
import { Banner } from './banner'

export function HomeBanner() {
  const locale = useLocale()
  const { data: banners } = useSuspenseQuery(
    consoleQuery.explore.banners.get.queryOptions({
      input: { query: { language: locale } },
    }),
  )

  return <Banner banners={banners} />
}