Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

no-plugin-selected.tsx 666B

12345678910111213141516171819202122
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. import { AUTO_UPDATE_MODE } from './types'
  5. import { useTranslation } from 'react-i18next'
  6. type Props = {
  7. updateMode: AUTO_UPDATE_MODE
  8. }
  9. const NoPluginSelected: FC<Props> = ({
  10. updateMode,
  11. }) => {
  12. const { t } = useTranslation()
  13. const text = `${t(`plugin.autoUpdate.upgradeModePlaceholder.${updateMode === AUTO_UPDATE_MODE.partial ? 'partial' : 'exclude'}`)}`
  14. return (
  15. <div className='system-xs-regular rounded-[10px] border border-[divider-subtle] bg-background-section p-3 text-center text-text-tertiary'>
  16. {text}
  17. </div>
  18. )
  19. }
  20. export default React.memo(NoPluginSelected)