Auth fertig erstellt. Aktuell läuft review durch KI

This commit is contained in:
2026-08-29 14:07:44 +02:00
commit 625d026f59
70 changed files with 17032 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
import { useEffect } from "react";
import Cal, { getCalApi } from "@calcom/embed-react";
import { CAL_CONFIG } from "@/lib/config.ts";
// Rein den cal.com-Embed - keine Umgebung, kein Wrapper.
// Wird sowohl vom Modal (booking-dialog.tsx) als auch von der Route
// /termin genutzt, damit Konfiguration und Verhalten identisch bleiben.
export default function BookingEmbed() {
useEffect(() => {
(async () => {
const cal = await getCalApi({
namespace: CAL_CONFIG.namespace,
embedJsUrl: CAL_CONFIG.embedJsUrl,
});
cal("ui", {
hideEventTypeDetails: false,
layout: "month_view",
});
})();
}, []);
return (
<Cal
namespace={CAL_CONFIG.namespace}
calLink={CAL_CONFIG.calLink}
style={{ width: "100%", height: "100%", overflow: "scroll" }}
config={{
layout: "month_view",
useSlotsViewOnSmallScreen: "true",
}}
calOrigin={CAL_CONFIG.origin}
embedJsUrl={CAL_CONFIG.embedJsUrl}
/>
);
}