Paulus Schoutsen faf576d43d Add script editor (#393)
* Add script editor

* Cleanup
2017-08-15 22:09:43 -07:00

30 lines
558 B
JavaScript

import { h, Component } from 'preact';
import { onChangeEvent } from '../../util/event';
export default class DelayAction extends Component {
constructor() {
super();
this.onChange = onChangeEvent.bind(this, 'action');
}
render({ action }) {
const { delay } = action;
return (
<div>
<paper-input
label="Delay"
name="delay"
value={delay}
onChange={this.onChange}
/>
</div>
);
}
}
DelayAction.configKey = 'delay';
DelayAction.defaultConfig = {
delay: '',
};