import { MessageUtils } from "../../flow/utils"
import PropTypes from 'prop-types'

DownloadContentButton.propTypes = {
    flow: PropTypes.object.isRequired,
    message: PropTypes.object.isRequired,
}

export default function DownloadContentButton({ flow, message }) {

    return (
        <a className="btn btn-default btn-xs"
           href={MessageUtils.getContentURL(flow, message)}
           title="Download the content of the flow.">
            <i className="fa fa-download"/>
        </a>
    )
}
ory'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/cgit.cgi/'><img src='/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/cgit.cgi/'>index</a> : <a title='cloud-email/mitmproxy' href='/cgit.cgi/cloud-email/mitmproxy/'>cloud-email/mitmproxy</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='b2e3d2ce7054a15d0b2a707709105c6cc0638151'/><select name='h' onchange='this.form.submit();'>
<option value='master' selected='selected'>master</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>clone of mitm proxy</td><td class='sub right'>James</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/cloud-email/mitmproxy/about/'>about</a><a href='/cgit.cgi/cloud-email/mitmproxy/'>summary</a><a href='/cgit.cgi/cloud-email/mitmproxy/refs/?id=b2e3d2ce7054a15d0b2a707709105c6cc0638151'>refs</a><a href='/cgit.cgi/cloud-email/mitmproxy/log/test/scripts/stream_modify.py'>log</a><a class='active' href='/cgit.cgi/cloud-email/mitmproxy/tree/test/scripts/stream_modify.py?id=b2e3d2ce7054a15d0b2a707709105c6cc0638151'>tree</a><a href='/cgit.cgi/cloud-email/mitmproxy/commit/test/scripts/stream_modify.py?id=b2e3d2ce7054a15d0b2a707709105c6cc0638151'>commit</a><a href='/cgit.cgi/cloud-email/mitmproxy/diff/test/scripts/stream_modify.py?id=b2e3d2ce7054a15d0b2a707709105c6cc0638151'>diff</a><a href='/cgit.cgi/cloud-email/mitmproxy/stats/test/scripts/stream_modify.py'>stats</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/cloud-email/mitmproxy/log/test/scripts/stream_modify.py'>
<input type='hidden' name='id' value='b2e3d2ce7054a15d0b2a707709105c6cc0638151'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/cloud-email/mitmproxy/tree/?id=b2e3d2ce7054a15d0b2a707709105c6cc0638151'>root</a>/<a href='/cgit.cgi/cloud-email/mitmproxy/tree/test?id=b2e3d2ce7054a15d0b2a707709105c6cc0638151'>test</a>/<a href='/cgit.cgi/cloud-email/mitmproxy/tree/test/scripts?id=b2e3d2ce7054a15d0b2a707709105c6cc0638151'>scripts</a>/<a href='/cgit.cgi/cloud-email/mitmproxy/tree/test/scripts/stream_modify.py?id=b2e3d2ce7054a15d0b2a707709105c6cc0638151'>stream_modify.py</a></div><div class='content'>blob: e26d83f197241b2202d95a8ea5167152e5b87f6f (<a href='/cgit.cgi/cloud-email/mitmproxy/plain/test/scripts/stream_modify.py?id=b2e3d2ce7054a15d0b2a707709105c6cc0638151'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
</pre></td>
<td class='lines'><pre><code>