bolt.diy/app/components/chat/ExportChatButton.tsx

14 lines
448 B
TypeScript
Raw Normal View History

2024-11-22 09:51:52 +00:00
import WithTooltip from '~/components/ui/Tooltip';
import { IconButton } from '~/components/ui/IconButton';
import React from 'react';
2024-11-23 08:41:43 +00:00
export const ExportChatButton = ({ exportChat }: { exportChat?: () => void }) => {
2024-11-22 22:29:16 +00:00
return (
<WithTooltip tooltip="Export Chat">
2024-11-24 13:28:49 +00:00
<IconButton title="Export Chat" onClick={() => exportChat?.()}>
2024-11-22 22:29:16 +00:00
<div className="i-ph:download-simple text-xl"></div>
</IconButton>
</WithTooltip>
);
};