import { Sparkles, Clock, Loader2 } from "lucide-react"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; import { Button } from "@/components/ui/button"; import { HotkeyButton } from "@/components/ui/hotkey-button"; import { Checkbox } from "@/components/ui/checkbox"; import { cn } from "@/lib/utils"; import { FEATURE_COUNT_OPTIONS } from "../constants"; import type { CreateSpecDialogProps, FeatureCount } from "../types"; export function CreateSpecDialog({ open, onOpenChange, projectOverview, onProjectOverviewChange, generateFeatures, onGenerateFeaturesChange, analyzeProject, onAnalyzeProjectChange, featureCount, onFeatureCountChange, onCreateSpec, onSkip, isCreatingSpec, showSkipButton = false, title = "Create App Specification", description = "We didn't find an app_spec.txt file. Let us help you generate your app_spec.txt to help describe your project for our system. We'll analyze your project's tech stack and create a comprehensive specification.", }: CreateSpecDialogProps) { const selectedOption = FEATURE_COUNT_OPTIONS.find( (o) => o.value === featureCount ); return ( { onOpenChange(open); if (!open && !isCreatingSpec && onSkip) { onSkip(); } }} > {title} {description}

Describe what your project does and what features you want to build. Be as detailed as you want - this will help us create a better specification.