Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
import React from 'react';
import { Download } from 'lucide';
import ActionButton from '~/components/Messages/Content/ActionButton';
import { useLocalize } from '~/hooks';
interface DownloadButtonProps {
isDownloaded: boolean;
iconOnly?: boolean;
onClick: () => void;
tabIndex?: number;
className?: string;
label?: string;
downloadedLabel?: string;
}
const DownloadButton = React.forwardRef<HTMLButtonElement, DownloadButtonProps>(
(
{ isDownloaded, iconOnly = false, onClick, tabIndex, className, label, downloadedLabel },
ref,
) => {
const localize = useLocalize();
return (
<ActionButton
ref={ref}
icon={Download}
isActive={isDownloaded}
label={label ?? localize('com_ui_download')}
activeLabel={downloadedLabel ?? localize('com_ui_downloaded')}
iconOnly={iconOnly}
onClick={onClick}
tabIndex={tabIndex}
className={className}
/>
);
},
);
DownloadButton.displayName = 'DownloadButton';
export default DownloadButton;