feat:新增dify1.11.1版本
This commit is contained in:
18
dify_1.11.1/web/context/provider-context-mock.tsx
Normal file
18
dify_1.11.1/web/context/provider-context-mock.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
'use client'
|
||||
import type { FC } from 'react'
|
||||
import React from 'react'
|
||||
import { useProviderContext } from '@/context/provider-context'
|
||||
|
||||
const ProviderContextMock: FC = () => {
|
||||
const { plan } = useProviderContext()
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div data-testid="plan-type">{plan.type}</div>
|
||||
<div data-testid="plan-usage-build-apps">{plan.usage.buildApps}</div>
|
||||
<div data-testid="plan-total-build-apps">{plan.total.buildApps}</div>
|
||||
<div data-testid="plan-reset-api-rate-limit">{plan.reset.apiRateLimit}</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default React.memo(ProviderContextMock)
|
||||
Reference in New Issue
Block a user