2025-03-31 14:26:43 +08:00
|
|
|
import classNames from '@/utils/classnames'
|
2024-09-08 12:14:11 +07:00
|
|
|
import type { FC } from 'react'
|
2025-05-17 12:32:27 +08:00
|
|
|
import { basePath } from '@/utils/var'
|
2024-09-08 12:14:11 +07:00
|
|
|
|
|
|
|
type LogoEmbeddedChatHeaderProps = {
|
|
|
|
className?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
const LogoEmbeddedChatHeader: FC<LogoEmbeddedChatHeaderProps> = ({
|
|
|
|
className,
|
|
|
|
}) => {
|
2025-03-31 14:26:43 +08:00
|
|
|
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' />
|
2024-09-08 12:14:11 +07:00
|
|
|
<img
|
2025-05-17 12:32:27 +08:00
|
|
|
src={`${basePath}/logo/logo-embedded-chat-header.png`}
|
2024-09-08 12:14:11 +07:00
|
|
|
alt='logo'
|
2025-03-31 14:26:43 +08:00
|
|
|
className={classNames('block h-6 w-auto', className)}
|
2024-09-08 12:14:11 +07:00
|
|
|
/>
|
2025-03-31 14:26:43 +08:00
|
|
|
</picture>
|
2024-09-08 12:14:11 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
export default LogoEmbeddedChatHeader
|