|
@@ -1,5 +1,4 @@
|
|
|
import type { FC } from 'react'
|
|
|
-import { useTranslation } from 'react-i18next'
|
|
|
import IconWithTooltip from './icon-with-tooltip'
|
|
|
import VerifiedDark from '@/app/components/base/icons/src/public/plugins/VerifiedDark'
|
|
|
import VerifiedLight from '@/app/components/base/icons/src/public/plugins/VerifiedLight'
|
|
@@ -7,12 +6,13 @@ import useTheme from '@/hooks/use-theme'
|
|
|
|
|
|
type VerifiedProps = {
|
|
|
className?: string
|
|
|
+ text: string
|
|
|
}
|
|
|
|
|
|
const Verified: FC<VerifiedProps> = ({
|
|
|
className,
|
|
|
+ text,
|
|
|
}) => {
|
|
|
- const { t } = useTranslation()
|
|
|
const { theme } = useTheme()
|
|
|
|
|
|
return (
|
|
@@ -21,7 +21,7 @@ const Verified: FC<VerifiedProps> = ({
|
|
|
theme={theme}
|
|
|
BadgeIconLight={VerifiedLight}
|
|
|
BadgeIconDark={VerifiedDark}
|
|
|
- popupContent={t('plugin.marketplace.verifiedTip')}
|
|
|
+ popupContent={text}
|
|
|
/>
|
|
|
)
|
|
|
}
|