Skip to content

Instantly share code, notes, and snippets.

@ryanjyost
Last active March 26, 2019 03:32
Show Gist options
  • Select an option

  • Save ryanjyost/91bb9ac8d92bb9423e00b6aa1d3b90a4 to your computer and use it in GitHub Desktop.

Select an option

Save ryanjyost/91bb9ac8d92bb9423e00b6aa1d3b90a4 to your computer and use it in GitHub Desktop.
import React from "react";
const FooterMenu = ({ menuItems, styles }) => {
return (
<div
style={{
display: "flex",
alignItems: "stretch",
width: "100%",
height: styles.footerMenuHeight,
backgroundColor: "#333",
color: "#fff",
position: "fixed",
bottom: 0
}}
>
{menuItems.map((item, i) => {
return (
<div
key={i}
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
flex: 1
}}
>
<span style={{ fontSize: 20 }}>{item.icon}</span>
</div>
);
})}
</div>
);
};
export default FooterMenu;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment