diff --git a/src/components/create-post-form.tsx b/src/components/create-post-form.tsx index d73312b..70af648 100644 --- a/src/components/create-post-form.tsx +++ b/src/components/create-post-form.tsx @@ -11,7 +11,7 @@ import { checkAiAccess, generateAiContent } from "@/functions/ai" import { createDestinationFromInput, getRecentDestinations } from "@/functions/posts" import type { PlatformInfo, PostDestination } from "@/lib/server/social-platforms/base-platform" import { useMutation, useQuery } from "@tanstack/react-query" -import { CalendarClock, ChevronDown, ChevronUp, HelpCircle, Loader2, Lock, MapPin, Rocket, RotateCcw, Sparkles, X } from "lucide-react" +import { CalendarClock, ChevronDown, ChevronUp, HelpCircle, History, Loader2, Lock, MapPin, Rocket, Sparkles, X, Zap } from "lucide-react" import { useState } from "react" import { toast } from "sonner" @@ -326,9 +326,9 @@ export function CreatePostForm({ } return ( -
+
{platformInfo.requiredFields.map((field) => ( -
+
-
+
-
+
-
+
@@ -566,25 +564,25 @@ export function CreatePostForm({ ) return ( -
-

Create a new post

-
- {/* AI Generation Section - Always visible */} -
- {!showAiInput || !isAiAvailable ? ( - renderAiButton() - ) : ( -
-
- +
+ {/* AI Generation Section */} +
+ {!showAiInput || !isAiAvailable ? ( + renderAiButton() + ) : ( +
+
+ +
+ setAiPrompt(e.target.value)} + disabled={isGenerating} + className="flex-1" + />
- setAiPrompt(e.target.value)} - disabled={isGenerating} - />
- - {/* Advanced AI Settings */} - {renderAdvancedSettings()} - - {/* Quick Adjustment Buttons - only show if content exists */} - { -
- -
- - - - - - -
-
- } - - {/* Generation History */} - {generationHistory.length > 0 && ( -
-
- - -
- - {showGenerationHistory && ( -
- {generationHistory.map((item) => ( -
-
- {item.timestamp.toLocaleTimeString()} - -
-

{item.content}

-

Prompt: {item.prompt}

-
- ))} -
- )} -
- )}
- )} -
- {/* Main Content Textarea */} -