import { Button, CopyButton, Dialog, DialogContent } from '@/components'; import { CheckCircle, Lock, Database, HardDrive, Code2, Box } from 'lucide-react'; import type { PromptTemplate } from '../prompts'; interface PromptDialogProps { open: boolean; onOpenChange: (open: boolean) => void; promptTemplate: PromptTemplate | null; } const featureIcons: Record = { Authentication: Lock, Database: Database, Storage: HardDrive, Functions: Code2, 'AI Integration': Box, }; export function PromptDialog({ open, onOpenChange, promptTemplate }: PromptDialogProps) { if (!promptTemplate) { return null; } return ( {/* Content area with border bottom */}
{/* Header and Prompt Section */}
{/* Title */}

{promptTemplate.title}

{/* Prompt Box */}

{promptTemplate.description}

{/* Badge only */}
Prompt
{/* Prompt Text */}

{promptTemplate.prompt}

{/* Features Section */}

Features included:

{promptTemplate.features.map((feature, index) => { const Icon = featureIcons[feature] || Box; return (

{feature}

); })}
{/* Footer */}
); }