import React from 'react'
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>
    )
}
an='2'><a href='/cgit/'><img src='/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/cgit/'>index</a> : <a title='iCE40/yosys' href='/cgit/iCE40/yosys/'>iCE40/yosys</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='64ea55056a4fca35fa4e956d40da98c20bb8d730'/><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 https://github.com/YosysHQ/yosys</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit/iCE40/yosys/about/'>about</a><a href='/cgit/iCE40/yosys/'>summary</a><a href='/cgit/iCE40/yosys/refs/?id=64ea55056a4fca35fa4e956d40da98c20bb8d730'>refs</a><a href='/cgit/iCE40/yosys/log/examples/basys3/example.xdc'>log</a><a class='active' href='/cgit/iCE40/yosys/tree/examples/basys3/example.xdc?id=64ea55056a4fca35fa4e956d40da98c20bb8d730'>tree</a><a href='/cgit/iCE40/yosys/commit/examples/basys3/example.xdc?id=64ea55056a4fca35fa4e956d40da98c20bb8d730'>commit</a><a href='/cgit/iCE40/yosys/diff/examples/basys3/example.xdc?id=64ea55056a4fca35fa4e956d40da98c20bb8d730'>diff</a><a href='/cgit/iCE40/yosys/stats/examples/basys3/example.xdc'>stats</a></td><td class='form'><form class='right' method='get' action='/cgit/iCE40/yosys/log/examples/basys3/example.xdc'>
<input type='hidden' name='id' value='64ea55056a4fca35fa4e956d40da98c20bb8d730'/><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/iCE40/yosys/tree/?id=64ea55056a4fca35fa4e956d40da98c20bb8d730'>root</a>/<a href='/cgit/iCE40/yosys/tree/examples?id=64ea55056a4fca35fa4e956d40da98c20bb8d730'>examples</a>/<a href='/cgit/iCE40/yosys/tree/examples/basys3?id=64ea55056a4fca35fa4e956d40da98c20bb8d730'>basys3</a>/<a href='/cgit/iCE40/yosys/tree/examples/basys3/example.xdc?id=64ea55056a4fca35fa4e956d40da98c20bb8d730'>example.xdc</a></div><div class='content'>blob: c1fd0e925ee9d745ab9bc031ecbd565f2ea7d2da (<a href='/cgit/iCE40/yosys/plain/examples/basys3/example.xdc?id=64ea55056a4fca35fa4e956d40da98c20bb8d730'>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>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
</pre></td>
<td class='lines'><pre><code>