mirror of
https://github.com/langgenius/dify.git
synced 2026-09-07 01:43:41 +08:00
Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: fatelei <fatelei@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: CodingOnStar <hanxujiang@dify.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: 姜涵煦 <hanxujiang@jianghanxudeMacBook-Pro-2.local> Co-authored-by: L1nSn0w <l1nsn0w@qq.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
29 lines
677 B
TypeScript
29 lines
677 B
TypeScript
'use client'
|
|
|
|
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
|