dify/web/app/components/base/logo/logo-embedded-chat-header.tsx
johnny0120 49af07f444
fix: use NextJS basePath and WEB_PREFIX to support custom prefix (#19497)
Co-authored-by: johnny0120 <15564476+johnny0120@users.noreply.github.com>
2025-05-12 13:44:41 +08:00

25 lines
754 B
TypeScript

import classNames from '@/utils/classnames'
import type { FC } from 'react'
import { WEB_PREFIX } from '@/config'
type LogoEmbeddedChatHeaderProps = {
className?: string
}
const LogoEmbeddedChatHeader: FC<LogoEmbeddedChatHeaderProps> = ({
className,
}) => {
return <picture>
<source media="(resolution: 1x)" srcSet='/logo/logo-embedded-chat-header.png' />
<source media="(resolution: 2x)" srcSet='/logo/logo-embedded-chat-header@2x.png' />
<source media="(resolution: 3x)" srcSet='/logo/logo-embedded-chat-header@3x.png' />
<img
src={`${WEB_PREFIX}/logo/logo-embedded-chat-header.png`}
alt='logo'
className={classNames('block h-6 w-auto', className)}
/>
</picture>
}
export default LogoEmbeddedChatHeader