dify/web/app/components/base/logo/logo-embedded-chat-header.tsx
yyh af7d5e60b4
feat(ui): scaffold @langgenius/dify-ui and migrate design tokens (#35256)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-04-15 13:11:20 +00:00

27 lines
773 B
TypeScript

import type { FC } from 'react'
import { cn } from '@langgenius/dify-ui/cn'
import { basePath } from '@/utils/var'
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={`${basePath}/logo/logo-embedded-chat-header.png`}
alt="logo"
className={cn('block h-6 w-auto', className)}
/>
</picture>
)
}
export default LogoEmbeddedChatHeader