dify/web/app/components/plugins/base/badges/partner.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

27 lines
663 B
TypeScript

import type { FC } from 'react'
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'
import IconWithTooltip from './icon-with-tooltip'
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