"use client" import type { CSSProperties } from "react" import { ArrowLeftIcon } from "lucide-react" import { cn } from "@/lib/utils" import type { DemoInfo } from "../demo-info" import { AI_DEMOS, demoHref, type AiAccess, type AiDemoSlug } from "../demos" import { AssistantDemo } from "./assistant-demo" import { ContentDemo } from "./content-demo" import { PhoneDemo } from "./phone-demo" const intro: Record { title: string; text: string }> = { telefon: (brand) => ({ title: "Ihr KI-Telefonassistent", text: `Nimmt Anrufe an, beantwortet Fragen rund um ${brand} und notiert Terminwünsche – rund um die Uhr. Auf „Anrufen“ klicken und einfach lossprechen.`, }), assistent: () => ({ title: "Angebots- & E-Mail-Assistent", text: "Aus einer Kundenanfrage wird in Sekunden eine passende Antwort oder ein Angebotsentwurf – auf Basis Ihrer Leistungen und Preise.", }), content: (brand) => ({ title: "Content-Generator", text: `Posts und Anzeigen für ${brand} in Ihrem Ton – für Instagram, Facebook, LinkedIn und Google Ads.`, }), } // Gemeinsamer Rahmen der KI-Demos: dunkle Produktoberfläche in der Akzentfarbe des Kunden export function AiDemo({ tool, access, info }: { tool: AiDemoSlug; access: AiAccess; info: DemoInfo }) { const { title, text } = intro[tool](info.brand) return (
{info.brand.charAt(0).toUpperCase()} {info.brand} Zur Webseite

KI-Demo für {info.brand}

{title}

{text}

{tool === "telefon" && } {tool === "assistent" && } {tool === "content" && }
) }