import { jsx as _jsx } from "react/jsx-runtime";
/*
 * Copyright (c) 2023-2025 Datalayer, Inc.
 * Distributed under the terms of the Modified BSD License.
 */
import { Button } from '@primer/react';
import { DownloadIcon } from '@primer/octicons-react';
import { downloadCSV } from '../../utils/index.js';
export const DownloadCSVButton = ({ data, fileName, variant = 'default', }) => {
    return (_jsx(Button, { variant: variant, leadingVisual: DownloadIcon, onClick: e => downloadCSV(data, fileName), children: "Download" }));
};
export default DownloadCSVButton;
