mirror of
https://github.com/langgenius/dify.git
synced 2026-07-23 03:58:31 +08:00
17 lines
605 B
TypeScript
17 lines
605 B
TypeScript
'use client'
|
|
import type { FC } from 'react'
|
|
import * as React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import { AUTO_UPDATE_MODE } from './types'
|
|
|
|
type Props = Readonly<{
|
|
updateMode: AUTO_UPDATE_MODE
|
|
}>
|
|
|
|
const NoPluginSelected: FC<Props> = ({ updateMode }) => {
|
|
const { t } = useTranslation()
|
|
const text = `${t(($) => $[`autoUpdate.upgradeModePlaceholder.${updateMode === AUTO_UPDATE_MODE.partial ? 'partial' : 'exclude'}`], { ns: 'plugin' })}`
|
|
return <div className="text-center system-xs-regular text-text-tertiary">{text}</div>
|
|
}
|
|
export default React.memo(NoPluginSelected)
|