-
+
Failed to get document
@@ -155,7 +177,7 @@ function DocumentViewer(props: { id: number }) {
-
+
+
+ Download
+
+
+
+
+ Open
+
+
+
+
+
+
+
+ Are you absolutely sure?
+
+ This action cannot be undone. This will permanently delete
+ the recording.
+
+
+
+ Cancel
+ {
+ const response = await deleteDocument(props.id);
+ if (response.ok) {
+ toast("Pdf deleted", {
+ description: "The recording has been deleted.",
+ });
+ } else {
+ toast("Error deleting pdf", {
+ description:
+ "An error occurred while deleting the pdf.",
+ });
+ }
+ router.back();
+ }}
+ >
+ Continue
+
+
+
+
diff --git a/src/types/index.ts b/src/types/index.ts
index 9dcbe4c..6d1f774 100644
--- a/src/types/index.ts
+++ b/src/types/index.ts
@@ -95,7 +95,20 @@ export type WhishperRecordingType = {
}[];
text: string;
};
- translations: [];
+ translations: Translation[];
+};
+
+type Translation = {
+ sourceLanguage: string;
+ targetLanguage: string;
+ text: string;
+ segments: [];
+};
+
+export type SimpleWhishperTranscription = {
+ id: string;
+ duration: number;
+ name: string;
};
export type AdviceAPIType = {