+
+ {/* the zIndex ensures this menu has higher stacking order,
+ see https://github.com/excalidraw/excalidraw/pull/1445 */}
+ {device.editor.isMobile ? (
+ {children}
+ ) : (
+
+ {children}
+
+ )}
+
+
+ );
+};
+MenuContent.displayName = "DropdownMenuContent";
+
+export default MenuContent;
diff --git a/packages/excalidraw/components/dropdownMenu/DropdownMenuGroup.tsx b/packages/excalidraw/components/dropdownMenu/DropdownMenuGroup.tsx
new file mode 100644
index 0000000..aa4b49a
--- /dev/null
+++ b/packages/excalidraw/components/dropdownMenu/DropdownMenuGroup.tsx
@@ -0,0 +1,23 @@
+import React from "react";
+
+const MenuGroup = ({
+ children,
+ className = "",
+ style,
+ title,
+}: {
+ children: React.ReactNode;
+ className?: string;
+ style?: React.CSSProperties;
+ title?: string;
+}) => {
+ return (
+