Chore: chat log refactor (#5523)

This commit is contained in:
KVOJJJin
2024-06-24 12:29:14 +08:00
committed by GitHub
parent 47a5d4527b
commit 8294e97113
97 changed files with 165 additions and 5249 deletions

View File

@@ -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>