Small-cleanup-of-base-chat-component

This commit is contained in:
eduardruzga
2024-11-25 09:43:34 +02:00
parent 1cb836a648
commit 30605ea3a1
4 changed files with 103 additions and 92 deletions

View File

@@ -0,0 +1,13 @@
import WithTooltip from '~/components/ui/Tooltip';
import { IconButton } from '~/components/ui/IconButton';
import React from 'react';
export const ExportChatButton = ({ exportChat }: { exportChat?: () => void }) => {
return (
<WithTooltip tooltip="Export Chat">
<IconButton title="Export Chat" onClick={() => exportChat?.()}>
<div className="i-ph:download-simple text-xl"></div>
</IconButton>
</WithTooltip>
);
};