import { FC } from 'react'; import { useTranslation } from 'react-i18next'; import { FaEyeSlash, FaLock } from 'react-icons/fa'; interface PluginListLabelProps { frozen: boolean; hidden: boolean; name: string; version?: string; } const PluginListLabel: FC = ({ name, frozen, hidden, version }) => { const { t } = useTranslation(); return (
{name} {version && ( <> {' - '} {frozen && ( <> {' '} )} {version} )}
{hidden && (
{t('PluginListLabel.hidden')}
)}
); }; export default PluginListLabel;