'use client' import type { FC } from 'react' import React from 'react' import { AUTO_UPDATE_MODE } from './types' import { useTranslation } from 'react-i18next' type Props = { updateMode: AUTO_UPDATE_MODE } const NoPluginSelected: FC = ({ updateMode, }) => { const { t } = useTranslation() const text = `${t(`plugin.autoUpdate.upgradeModePlaceholder.${updateMode === AUTO_UPDATE_MODE.partial ? 'partial' : 'exclude'}`)}` return (
{text}
) } export default React.memo(NoPluginSelected)