oysterprotocol/webinterface

View on GitHub
src/components/download-upload-history/download-upload-history-button.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React, { Component } from "react";
import Button from "../shared/button";

interface DownloadUploadHistoryButtonProps {
  download;
}

class DownloadUploadHistoryButton extends Component<
  DownloadUploadHistoryButtonProps
> {
  render() {
    const { download } = this.props;
    return (
      <div>
        <Button
          onClick={() => {
            download();
          }}
        >
          Download upload history
        </Button>
      </div>
    );
  }
}

export default DownloadUploadHistoryButton;