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>
    )
}
'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/cgit/'><img src='/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/cgit/'>index</a> : <a title='avr/qmk/firmware' href='/cgit/avr/qmk/firmware/'>avr/qmk/firmware</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='7ba82cb5b751d69dda6cc77ec8877c89defad3e4'/><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'>[no description]</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit/avr/qmk/firmware/about/'>about</a><a href='/cgit/avr/qmk/firmware/'>summary</a><a href='/cgit/avr/qmk/firmware/refs/?id=7ba82cb5b751d69dda6cc77ec8877c89defad3e4'>refs</a><a href='/cgit/avr/qmk/firmware/log/docs/feature_thermal_printer.md'>log</a><a class='active' href='/cgit/avr/qmk/firmware/tree/docs/feature_thermal_printer.md?id=7ba82cb5b751d69dda6cc77ec8877c89defad3e4'>tree</a><a href='/cgit/avr/qmk/firmware/commit/docs/feature_thermal_printer.md?id=7ba82cb5b751d69dda6cc77ec8877c89defad3e4'>commit</a><a href='/cgit/avr/qmk/firmware/diff/docs/feature_thermal_printer.md?id=7ba82cb5b751d69dda6cc77ec8877c89defad3e4'>diff</a><a href='/cgit/avr/qmk/firmware/stats/docs/feature_thermal_printer.md'>stats</a></td><td class='form'><form class='right' method='get' action='/cgit/avr/qmk/firmware/log/docs/feature_thermal_printer.md'>
<input type='hidden' name='id' value='7ba82cb5b751d69dda6cc77ec8877c89defad3e4'/><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/avr/qmk/firmware/tree/?id=7ba82cb5b751d69dda6cc77ec8877c89defad3e4'>root</a>/<a href='/cgit/avr/qmk/firmware/tree/docs?id=7ba82cb5b751d69dda6cc77ec8877c89defad3e4'>docs</a>/<a href='/cgit/avr/qmk/firmware/tree/docs/feature_thermal_printer.md?id=7ba82cb5b751d69dda6cc77ec8877c89defad3e4'>feature_thermal_printer.md</a></div><div class='content'>blob: 3f496646d4266bafabb0d18927830c3ec493eaf0 (<a href='/cgit/avr/qmk/firmware/plain/docs/feature_thermal_printer.md?id=7ba82cb5b751d69dda6cc77ec8877c89defad3e4'>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>
</pre></td>
<td class='lines'><pre><code>