|
@@ -0,0 +1,22 @@
|
|
|
+import cx from 'classnames';
|
|
|
+import style from './overlayMenu.css';
|
|
|
+
|
|
|
+function OverlayMenu ({renderMenu, className, ...props}, children) {
|
|
|
+ const composedClassName = cx(className, style.overlayMenu);
|
|
|
+
|
|
|
+ return (
|
|
|
+ <div className={composedClassName} {...props}>
|
|
|
+ <div className={style.menu}>
|
|
|
+ {renderMenu()}
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div className={style.content}>
|
|
|
+ {children}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ );
|
|
|
+}
|
|
|
+
|
|
|
+export {
|
|
|
+ OverlayMenu
|
|
|
+};
|