summaryrefslogtreecommitdiff
path: root/client/components/Browser/Folders/NewFolderView.jsx
blob: 3badb8259a00d3739a284a36fdbc805ee1574dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { h, Component } from 'preact'

export default function NewFolderView (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>
  )
}