= (props: AllProps) => {
fontFamily: "monospace",
color: "white",
}}
- >
+ />
);
diff --git a/src/components/Preview/displays/VideoDisplay.tsx b/src/components/Preview/displays/VideoDisplay.tsx
new file mode 100644
index 000000000..c18e66205
--- /dev/null
+++ b/src/components/Preview/displays/VideoDisplay.tsx
@@ -0,0 +1,27 @@
+import { IFileBlob } from "../../../api/model";
+
+type AllProps = {
+ fileItem: IFileBlob;
+};
+
+const VideoDisplay = (props: AllProps) => {
+ const { fileItem } = props;
+ const { blob, url, fileType } = fileItem;
+ const urlToFetch = url
+ ? url
+ : blob
+ ? window.URL.createObjectURL(new Blob([blob], { type: blob.type }))
+ : "";
+ const sourceType = url ? fileType : blob ? blob.type : "";
+
+ return (
+ // biome-ignore lint/a11y/useMediaCaption: