mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-26 08:08:17 +08:00
30 lines
678 B
TypeScript
30 lines
678 B
TypeScript
import type { FC } from 'react'
|
|
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'
|
|
import useTheme from '@/hooks/use-theme'
|
|
|
|
type VerifiedProps = {
|
|
className?: string
|
|
text: string
|
|
}
|
|
|
|
const Verified: FC<VerifiedProps> = ({
|
|
className,
|
|
text,
|
|
}) => {
|
|
const { theme } = useTheme()
|
|
|
|
return (
|
|
<IconWithTooltip
|
|
className={className}
|
|
theme={theme}
|
|
BadgeIconLight={VerifiedLight}
|
|
BadgeIconDark={VerifiedDark}
|
|
popupContent={text}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default Verified
|