Skip to content

Commit

Permalink
Rebase Folder-Links
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon committed May 10, 2024
1 parent 4317c54 commit e049f4c
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/components/NewLibrary/MenuBar.tsx
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;

0 comments on commit e049f4c

Please sign in to comment.