/* jshint ignore:start */
import React from 'react';
import Select from 'misago/components/select';
export default class extends React.Component {
onChange = (ev) => {
const { field, onChange } = this.props;
onChange(field.fieldname, ev.target.value);
}
render() {
const { disabled, field, value } = this.props;
const { input } = field;
if (input.type === 'select') {
return (
);
}
if (input.type === 'textarea') {
return (
);
}
if (input.type === 'text') {
return (
);
}
return null;
}
}