From 9eb1625ec5de3c221ed0445dde874fcb1dc3ff48 Mon Sep 17 00:00:00 2001
From: Sam Nystrom <sam@samnystrom.dev>
Date: Wed, 13 Mar 2024 18:01:48 +0000
Subject: feat: add menu components

---
 src/Toolbar.tsx | 30 ------------------------------
 1 file changed, 30 deletions(-)
 delete mode 100644 src/Toolbar.tsx

(limited to 'src/Toolbar.tsx')

diff --git a/src/Toolbar.tsx b/src/Toolbar.tsx
deleted file mode 100644
index 32f53ab..0000000
--- a/src/Toolbar.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import { useId } from 'preact/hooks';
-import { NodeInfo } from './node.tsx';
-import './Toolbar.css';
-
-export interface ToolbarProps {
-	nodes: Record<string, NodeInfo>;
-	onNodeAdded?: (NodeInfo) => void;
-}
-
-export const Toolbar = ({ nodes, onNodeAdded = _ => {} }: ToolbarProps) => {
-	const id = useId();
-	return (
-		<div class="__Toolbar">
-			<menu>
-				<li><button>Edit</button></li>
-				<li><button>Select</button></li>
-				<li>
-					<menu id={id} class="addMenu" popover="auto">
-						{Object.entries(nodes).map(([name, node]) => (
-							<li><button onClick={() => onNodeAdded(node)}>{name}</button></li>
-						))}
-					</menu>
-					<button popoverTarget={id}>Add</button>
-				</li>
-			</menu>
-			<h1>Sample Project</h1>
-			<div></div>
-		</div>
-	);
-};
-- 
cgit v1.2.3

