mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-15 19:48:16 +08:00
26 lines
487 B
TypeScript
26 lines
487 B
TypeScript
import type { FC } from 'react'
|
|
import { memo } from 'react'
|
|
|
|
type HeaderProps = {
|
|
title: string
|
|
isMobile: boolean
|
|
}
|
|
const Header: FC<HeaderProps> = ({
|
|
title,
|
|
isMobile,
|
|
}) => {
|
|
return (
|
|
<div
|
|
className={`
|
|
sticky top-0 flex items-center px-8 h-16 bg-white/80 text-base font-medium
|
|
text-gray-900 border-b-[0.5px] border-b-gray-100 backdrop-blur-md z-10
|
|
${isMobile && '!h-12'}
|
|
`}
|
|
>
|
|
{title}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default memo(Header)
|