feat(topic state and command) - add tab

This commit is contained in:
2026-02-06 16:16:08 +07:00
parent 2172614789
commit f12f34352a
5 changed files with 96 additions and 15 deletions

View File

@@ -0,0 +1,22 @@
import { useTopics } from "../hooks/queries";
import { Edit, Trash2 } from "lucide-react";
export default function StateSection() {
const { data } = useTopics();
return (
<>
{data?.map((item, key) => (
<div
key={key}
className="bg-white border-b border-neutral-200 p-4 flex justify-between"
>
<h1>{item.topic}</h1>
<div className="flex gap-2 ">
<Edit className="text-blue-500 cursor-pointer" size={18} />
<Trash2 className="text-red-500 cursor-pointer" size={18} />
</div>
</div>
))}
</>
);
}