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 { downloadJson } from '../../utils/index.js';
export const DownloadJsonButton = ({ data, fileName, variant = 'default', extension = 'json', }) => {
    return (_jsx(Button, { variant: variant, leadingVisual: DownloadIcon, onClick: e => downloadJson(data, fileName, extension), children: "Download" }));
};
export default DownloadJsonButton;
