-
-
-
-
-
-
-
-
+ {!hasRecorded && (
+ <>
+
+
+
+
+ >
+ )}
+
+ {hasRecorded && (
+ <>
+
+
+
+
+ >
+ )}
diff --git a/www/app/transcripts/useTranscript.ts b/www/app/transcripts/useTranscript.ts
index 14e67c79..07b614f4 100644
--- a/www/app/transcripts/useTranscript.ts
+++ b/www/app/transcripts/useTranscript.ts
@@ -1,6 +1,5 @@
import { useEffect, useState } from "react";
import { DefaultApi, V1TranscriptsCreateRequest } from "../api/apis/DefaultApi";
-import { Configuration } from "../api/runtime";
import { GetTranscript } from "../api";
import getApi from "../lib/getApi";
@@ -11,13 +10,11 @@ type UseTranscript = {
createTranscript: () => void;
};
-const useTranscript = (): UseTranscript => {
+const useTranscript = (api: DefaultApi): UseTranscript => {
const [response, setResponse] = useState(null);
const [loading, setLoading] = useState(false);
const [error, setError] = useState(null);
- const api = getApi();
-
const createTranscript = () => {
setLoading(true);
const requestParameters: V1TranscriptsCreateRequest = {