mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-28 00:58:20 +08:00
30 lines
668 B
TypeScript
30 lines
668 B
TypeScript
import type { FC } from 'react'
|
|
import IconWithTooltip from './icon-with-tooltip'
|
|
import PartnerDark from '@/app/components/base/icons/src/public/plugins/PartnerDark'
|
|
import PartnerLight from '@/app/components/base/icons/src/public/plugins/PartnerLight'
|
|
import useTheme from '@/hooks/use-theme'
|
|
|
|
type PartnerProps = {
|
|
className?: string
|
|
text: string
|
|
}
|
|
|
|
const Partner: FC<PartnerProps> = ({
|
|
className,
|
|
text,
|
|
}) => {
|
|
const { theme } = useTheme()
|
|
|
|
return (
|
|
<IconWithTooltip
|
|
className={className}
|
|
theme={theme}
|
|
BadgeIconLight={PartnerLight}
|
|
BadgeIconDark={PartnerDark}
|
|
popupContent={text}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default Partner
|