This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { getCalApi } from "@calcom/embed-react" | |
import { useRef, useEffect } from "react" | |
const useCalDotCom = (namespace: string, link: string, config: object) => { | |
const calRef = useRef<any>(null) | |
useEffect(() => { | |
const initCal = async () => { | |
const cal = await getCalApi() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script defer src='https://my.backend.io/v1/library/customer-xyz123/ /> |