forked from TamimEhsan/AlgorithmVisualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.jsx
More file actions
36 lines (34 loc) · 1.22 KB
/
Copy pathmenu.jsx
File metadata and controls
36 lines (34 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import React, {Component} from 'react';
import SimpleSelect from "./simpleSelect";
class Menu extends Component {
render() {
return (
<nav className="nav alert-dark" >
<SimpleSelect
onAlgoChanged = {this.props.onAlgoChanged}
items={this.props.algorithms}
/>
<SimpleSelect
onAlgoChanged={this.props.onMazeChanged}
items={this.props.mazes}
/>
<button
className='btn btn-lg btn-secondary m-2'
onClick={this.props.onCreateMaze}>
Create Maze
</button>
<button
onClick={this.props.onVisualize}
className="btn btn-warning btn-lg"
>Visualize</button>
<button
onClick={this.props.onClearPath}
className='btn btn-danger btn-lg m-2'>Clear Path</button>
<button
onClick={this.props.onClearBoard}
className='btn btn-danger btn-lg m-2'>Clear Board</button>
</nav>
);
}
}
export default Menu;