Commit 4ceeae5c by HoMeTown

feat: 收藏列表

parent 6383ef2c
...@@ -96,7 +96,11 @@ export const Collect: React.FC = () => { ...@@ -96,7 +96,11 @@ export const Collect: React.FC = () => {
{formatMarkdown(item.answer || '')} {formatMarkdown(item.answer || '')}
</ReactMarkdown> </ReactMarkdown>
{item.attachmentList && item.attachmentList?.length !== 0 && <ChatAnswerAttachment answer={item} />} {item.attachmentList && item.attachmentList?.length !== 0 && <ChatAnswerAttachment answer={item} />}
<div className="mt-[12px] flex gap-[4px] justify-end"> <div className="mt-[12px] flex gap-[4px] justify-between items-center">
<div className="text-12px text-[#B2B8C1]">
{item.collectionTime}
</div>
<div>
<Tooltip color="foreground" content="复制" className="capitalize"> <Tooltip color="foreground" content="复制" className="capitalize">
<Button variant="light" isIconOnly aria-label="CopyIcon" onClick={() => handleCopy(item)}><CopyIcon /></Button> <Button variant="light" isIconOnly aria-label="CopyIcon" onClick={() => handleCopy(item)}><CopyIcon /></Button>
</Tooltip> </Tooltip>
...@@ -105,6 +109,7 @@ export const Collect: React.FC = () => { ...@@ -105,6 +109,7 @@ export const Collect: React.FC = () => {
</Tooltip> </Tooltip>
</div> </div>
</div> </div>
</div>
)) ))
} }
{isLoading && <div className="w-full flex justify-center"><Spinner /></div>} {isLoading && <div className="w-full flex justify-center"><Spinner /></div>}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment