From e365410dceb6ca2dae8b2d1b081b8e661a12f68b Mon Sep 17 00:00:00 2001 From: ds Date: Sun, 28 Jun 2026 18:39:08 +0000 Subject: [PATCH] =?UTF-8?q?src/components/NamespaceSelector.tsx=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/NamespaceSelector.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/components/NamespaceSelector.tsx diff --git a/src/components/NamespaceSelector.tsx b/src/components/NamespaceSelector.tsx new file mode 100644 index 0000000..7303278 --- /dev/null +++ b/src/components/NamespaceSelector.tsx @@ -0,0 +1,21 @@ +import React, { useEffect, useState } from "react"; + +export default function NamespaceSelector({ value, onChange }) { + const [namespaces, setNamespaces] = useState([]); + + useEffect(() => { + fetch("/api/v1/namespaces") + .then((r) => r.json()) + .then((d) => setNamespaces(d.items || [])); + }, []); + + return ( + + ); +} \ No newline at end of file