dify/web/app/components/plugins/reference-setting-modal/auto-update-setting/no-plugin-selected.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

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)