mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-10 12:24:20 +01:00
22 lines
567 B
JavaScript
22 lines
567 B
JavaScript
import React, { useState } from 'react'
|
|
import { Card, CardContent, TextField, Button } from '@material-ui/core'
|
|
import OpenIcon from '@material-ui/icons/Add'
|
|
|
|
export default function OpenBoard() {
|
|
const [name, setName] = useState('')
|
|
return <Card>
|
|
<CardContent>
|
|
<TextField
|
|
label="Board"
|
|
placeholder="Type a name..."
|
|
value={name}
|
|
onChange={e => setName(e.target.value)}
|
|
autoFocus
|
|
/>
|
|
<Button variant="contained" color="primary">
|
|
<OpenIcon /> Open
|
|
</Button>
|
|
</CardContent>
|
|
</Card>
|
|
}
|