-
-
-
-
- ID
- Tuman nomi
- Kim qo‘shgan
- Harakatlar
-
-
+
-
- {filtered.map((d) => (
-
- {d.id}
- {d.name}
-
- {d.user.firstName} {d.user.lastName}
-
-
-
+
-
-
-
- ))}
-
- {filtered.length === 0 && (
-
-
- Hech qanday tuman topilmadi
-
-
- )}
-
-
-
-
-
-
- {Array.from({ length: totalPages }, (_, i) => (
-
- ))}
-
-
+
);
};
diff --git a/src/features/districts/ui/Filter.tsx b/src/features/districts/ui/Filter.tsx
new file mode 100644
index 0000000..7d4de4d
--- /dev/null
+++ b/src/features/districts/ui/Filter.tsx
@@ -0,0 +1,65 @@
+import type { DistrictListData } from "@/features/districts/lib/data";
+import AddDistrict from "@/features/districts/ui/AddDistrict";
+import { Button } from "@/shared/ui/button";
+import {
+ Dialog,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from "@/shared/ui/dialog";
+import { Input } from "@/shared/ui/input";
+import { Plus } from "lucide-react";
+import { type Dispatch, type SetStateAction } from "react";
+
+interface Props {
+ search: string;
+ setSearch: Dispatch