import React, { Component } from 'react'; import { FormGroup, Label, Input } from 'reactstrap'; import Throttle from './throttle'; export default class TorrentOptions extends Component { render() { const { id, start, strategy, startChanged, path, pathChanged, priority, priorityChanged, downloadThrottle, downloadThrottleChanged, strategyChanged, uploadThrottle, uploadThrottleChanged, } = this.props; return (
{typeof start !== "undefined" && } {typeof path !== "undefined" && pathChanged(e.target.value)} /> } priorityChanged(parseInt(e.target.value))} > strategyChanged(e.target.value)} > downloadThrottleChanged(limit)} /> uploadThrottleChanged(limit)} />
); } }