Initial commit of 001code-html Scratch frontend project.
Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
19
scratch-gui/src/containers/menu.jsx
Normal file
19
scratch-gui/src/containers/menu.jsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
|
||||
import MenuComponent from '../components/menu/menu.jsx';
|
||||
|
||||
const Menu = ({open, children, ...props}) => (
|
||||
open ? (
|
||||
<MenuComponent {...props}>
|
||||
{children}
|
||||
</MenuComponent>
|
||||
) : null
|
||||
);
|
||||
|
||||
Menu.propTypes = {
|
||||
children: PropTypes.node,
|
||||
open: PropTypes.bool.isRequired
|
||||
};
|
||||
|
||||
export default Menu;
|
||||
Reference in New Issue
Block a user