Download AmazonClone/src/Compoenents/LeftMenuBox.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 856 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/AmazonClone/src/Compoenents/LeftMenuBox.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/AmazonClone/src/Compoenents/LeftMenuBox.jsx
-
curl -L -o LeftMenuBox.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/AmazonClone/src/Compoenents/LeftMenuBox.jsx
856 Bytes
| import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos"; | |
| export const LeftMenuBox = (props) => { | |
| return ( | |
| <div className="leftbar-menu-box"> | |
| <h3 className="title">{props.title}</h3> | |
| <ul> | |
| {props.listDetail.map((item) => ( | |
| <li className="leftMenu-item" key={item.id}> | |
| <div>{item.menuItem}</div> | |
| <div> | |
| <ArrowForwardIosIcon /> | |
| </div> | |
| </li> | |
| ))} | |
| </ul> | |
| </div> | |
| ); | |
| }; | |
| export const LeftMenuBox2 = (props) => { | |
| const { title } = props; | |
| return ( | |
| <div className="leftbar-menu-box"> | |
| <h3 className="title">{title}</h3> | |
| <ul> | |
| {props.listDetail.map((item) => ( | |
| <li className="leftMenu-item" key={item.id}> | |
| <div>{item.menuItem}</div> | |
| </li> | |
| ))} | |
| </ul> | |
| </div> | |
| ); | |
| }; | |