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.

709 B
Raw Blame
'use client'

import dynamic from 'next/dynamic'
import { useQueryState } from 'nuqs'
import {
  pricingQueryParamName,
  pricingQueryParser,
} from '@/app/components/billing/pricing/query-params'
import { useEducationExpireNotice } from './use-expire-notice'

const ExpireNoticeModal = dynamic(() => import('./modal'), { ssr: false })

export function EducationExpireNotice() {
  const [pricing] = useQueryState(pricingQueryParamName, pricingQueryParser)
  const [notice, dismissNotice] = useEducationExpireNotice()

  if (!notice || pricing === 'open') return null

  return (
    <ExpireNoticeModal
      expireAt={notice.expireAt}
      expired={notice.expired}
      onClose={dismissNotice}
    />
  )
}