import PrimaryButton from "../buttons/PrimaryButton.tsx"; import React from "react"; type props = { dataSend: React.MouseEventHandler; handleDownload: React.MouseEventHandler; downloadable: boolean; progress: number; uploading: boolean; } const Spinner = () => ( ); const ExportWidget = ({dataSend, handleDownload, downloadable, progress, uploading}: props) => { return (
{uploading && } {uploading ? "Uploading..." : "Export"}
{ downloadable ? ( Download ) :( ) }
) } export default ExportWidget;