import { Button } from "@ui/components/ui/button"; import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle, } from "@ui/components/ui/dialog"; import { Label } from "@ui/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@ui/components/ui/select"; import { CopyButton } from "@ui/components/ui/clipboard"; import { useState } from "react"; import { TypographyMuted } from "@ui/components/ui/typography"; type ColorVariant = "black" | "white" | "blue" | "purple" | "green" | "orange" | "red"; interface EmbedConfig { backgroundVariant: ColorVariant; buttonVariant: ColorVariant; } interface EmbedConfigModalProps { isOpen: boolean; onClose: () => void; baseEmbedUrl: string; } export function EmbedConfigModal({ isOpen, onClose, baseEmbedUrl }: EmbedConfigModalProps) { const [embedConfig, setEmbedConfig] = useState({ backgroundVariant: "purple", buttonVariant: "purple", }); const getEmbedUrl = () => { const params = new URLSearchParams({ backgroundVariant: embedConfig.backgroundVariant, buttonVariant: embedConfig.buttonVariant, }); return `${baseEmbedUrl}?${params.toString()}`; }; const generateEmbedCode = () => { const embedUrl = getEmbedUrl(); return ``; }; const colorOptions: { value: ColorVariant; label: string; color: string }[] = [ { value: "black", label: "Noir", color: "bg-gray-900" }, { value: "white", label: "Blanc", color: "bg-white" }, { value: "blue", label: "Bleu", color: "bg-blue-600" }, { value: "purple", label: "Violet", color: "bg-purple-600" }, { value: "green", label: "Vert", color: "bg-green-600" }, { value: "orange", label: "Orange", color: "bg-orange-600" }, { value: "red", label: "Rouge", color: "bg-red-600" }, ]; return ( Configurer l'intégration
{/* Configuration Section */}
{/* Preview Link */}
{/* Embed Code */}
Copiez ce code pour intégrer le formulaire de réservation sur votre site web
                  {generateEmbedCode()}
                
); }