Commit 4ceeae5c by HoMeTown

feat: 收藏列表

parent 6383ef2c
......@@ -96,7 +96,11 @@ export const Collect: React.FC = () => {
{formatMarkdown(item.answer || '')}
</ReactMarkdown>
{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">
<Button variant="light" isIconOnly aria-label="CopyIcon" onClick={() => handleCopy(item)}><CopyIcon /></Button>
</Tooltip>
......@@ -105,6 +109,7 @@ export const Collect: React.FC = () => {
</Tooltip>
</div>
</div>
</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