Chore: chat log refactor (#5523)
This commit is contained in:
@@ -1,24 +1,19 @@
|
||||
import type { FC } from 'react'
|
||||
import React from 'react'
|
||||
import { RiRefreshLine } from '@remixicon/react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
// import AppIcon from '@/app/components/base/app-icon'
|
||||
import { ReplayIcon } from '@/app/components/app/chat/icon-component'
|
||||
import Tooltip from '@/app/components/base/tooltip'
|
||||
|
||||
export type IHeaderProps = {
|
||||
isMobile?: boolean
|
||||
customerIcon?: React.ReactNode
|
||||
title: string
|
||||
// icon: string
|
||||
// icon_background: string
|
||||
onCreateNewChat?: () => void
|
||||
}
|
||||
const Header: FC<IHeaderProps> = ({
|
||||
isMobile,
|
||||
customerIcon,
|
||||
title,
|
||||
// icon,
|
||||
// icon_background,
|
||||
onCreateNewChat,
|
||||
}) => {
|
||||
const { t } = useTranslation()
|
||||
@@ -48,7 +43,7 @@ const Header: FC<IHeaderProps> = ({
|
||||
<div className='flex cursor-pointer hover:rounded-lg hover:bg-black/5 w-8 h-8 items-center justify-center' onClick={() => {
|
||||
onCreateNewChat?.()
|
||||
}}>
|
||||
<ReplayIcon className="h-4 w-4 text-sm font-bold text-white" />
|
||||
<RiRefreshLine className="h-4 w-4 text-sm font-bold text-white" />
|
||||
</div>
|
||||
</Tooltip>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user