'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 = { updateMode: AUTO_UPDATE_MODE } const NoPluginSelected: FC = ({ updateMode, }) => { const { t } = useTranslation() const text = `${t(`autoUpdate.upgradeModePlaceholder.${updateMode === AUTO_UPDATE_MODE.partial ? 'partial' : 'exclude'}`, { ns: 'plugin' })}` return (
{text}
) } export default React.memo(NoPluginSelected)