- {Array.from(elements.values()).map((element) => (
-
- ))}
+
+
+
+ {filteredElements.map((element) => (
+
+ ))}
+
+
+
+ {/*
+
+
+
*/}
+
setSearchQuery(e.target.value)}
+ />
)
-}
-
+}
\ No newline at end of file
diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx
new file mode 100644
index 0000000..69b64fb
--- /dev/null
+++ b/src/components/ui/input.tsx
@@ -0,0 +1,22 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+const Input = React.forwardRef
>(
+ ({ className, type, ...props }, ref) => {
+ return (
+
+ )
+ }
+)
+Input.displayName = "Input"
+
+export { Input }
diff --git a/src/context/ElementsContext.tsx b/src/context/ElementsContext.tsx
index 67c9199..84080f8 100644
--- a/src/context/ElementsContext.tsx
+++ b/src/context/ElementsContext.tsx
@@ -20,8 +20,8 @@ export function ElementsProvider({ children }: { children: React.ReactNode }) {
const [elements, setElements] = useState