mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-18 23:16:59 +01:00
13 lines
299 B
TypeScript
13 lines
299 B
TypeScript
import { convertFileSrc } from '@tauri-apps/api/core';
|
|
|
|
interface Props {
|
|
bodyPath: string;
|
|
}
|
|
|
|
export function VideoViewer({ bodyPath }: Props) {
|
|
const src = convertFileSrc(bodyPath);
|
|
|
|
// biome-ignore lint/a11y/useMediaCaption: none
|
|
return <video className="w-full" controls src={src} />;
|
|
}
|