diff --git a/app/dashboard/[workspaceId]/creatives/page.tsx b/app/dashboard/[workspaceId]/creatives/page.tsx
index 2106481..4b044bf 100644
--- a/app/dashboard/[workspaceId]/creatives/page.tsx
+++ b/app/dashboard/[workspaceId]/creatives/page.tsx
@@ -63,6 +63,14 @@ import {
} from "@/components/ui/tooltip";
import { Checkbox } from "@/components/ui/checkbox";
import { Label } from "@/components/ui/label";
+import {
+ Dialog,
+ DialogContent,
+ DialogDescription,
+ DialogHeader,
+ DialogTitle,
+} from "@/components/ui/dialog";
+import { BOT_USERNAME } from "@/lib/utils/constants";
import type { Creative, CreativeAnalyticsItem } from "@/lib/types/api";
// ============================================================================
@@ -125,6 +133,7 @@ export default function CreativesPage() {
const [analyticsData, setAnalyticsData] = useState([]);
const [loading, setLoading] = useState(true);
const [loadingAnalytics, setLoadingAnalytics] = useState(false);
+ const [showCreateDialog, setShowCreateDialog] = useState(false);
const [search, setSearch] = useState("");
const [includeArchived, setIncludeArchived] = useState(false);
const [viewMode, setViewMode] = useState<"table" | "grid">("table");
@@ -260,11 +269,9 @@ export default function CreativesPage() {
{canWrite && (
-
{canWrite && !search && (
-
-
-
- Создать креатив
-
+ setShowCreateDialog(true)}>
+
+ Создать креатив
)}
@@ -583,6 +588,48 @@ export default function CreativesPage() {
)}
+
+ {/* Dialog для создания креатива */}
+
);
}