-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4317c54
commit e049f4c
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { | ||
OverflowMenuItem, | ||
OverflowMenuGroup, | ||
OverflowMenu, | ||
Button, | ||
Switch, | ||
} from "@patternfly/react-core"; | ||
|
||
const MenuBar = ({ | ||
checked, | ||
handleChange, | ||
}: { | ||
checked: boolean; | ||
handleChange: () => void; | ||
}) => { | ||
return ( | ||
<OverflowMenu breakpoint="lg"> | ||
<OverflowMenuGroup groupType="button"> | ||
<OverflowMenuItem> | ||
<Switch | ||
label="Card Layout" | ||
labelOff="Tree Layout" | ||
isChecked={checked} | ||
onChange={handleChange} | ||
ouiaId="Switch Layouts" | ||
/> | ||
</OverflowMenuItem> | ||
<OverflowMenuItem> | ||
<Button size="sm" variant="primary"> | ||
Upload a Folder | ||
</Button> | ||
</OverflowMenuItem> | ||
<OverflowMenuItem> | ||
<Button size="sm" variant="primary"> | ||
Upload Files | ||
</Button> | ||
</OverflowMenuItem> | ||
|
||
<OverflowMenuItem> | ||
<Button size="sm" variant="primary"> | ||
Create a new folder | ||
</Button> | ||
</OverflowMenuItem> | ||
</OverflowMenuGroup> | ||
</OverflowMenu> | ||
); | ||
}; | ||
|
||
export default MenuBar; |