blob: 7573450251d063c274e0e9afd8763d42b299e1f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { h, Component } from 'preact'
export default function NewFolderView (props) {
console.log(props)
if (! props.visible) {
return null
}
return (
<div class='window'>
<div class='heading'>
<b>new folder</b>
<div class='buttons'>
<button onClick={props.onClose}>x</button>
</div>
</div>
<input type='text'
autofocus
placeholder='Enter a name'
value={props.name}
onChange={props.onChange}
/>
</div>
)
}
|