"use client"; import "@whereby.com/browser-sdk/embed"; import { useCallback, useEffect, useRef } from "react"; import useTranscript from "../../useTranscript"; import useMeeting from "../../useMeeting"; export type TranscriptDetails = { params: { transcriptId: string; }; }; export default function TranscriptMeeting(details: TranscriptDetails) { const wherebyRef = useRef(null); const transcript = useTranscript(details.params.transcriptId); const meeting = useMeeting(transcript?.response?.meeting_id); const roomUrl = meeting?.response?.host_room_url ? meeting?.response?.host_room_url : meeting?.response?.room_url; return ( <> {roomUrl && ( )} ); }