use new note parser for note component

This commit is contained in:
Ren Amamiya
2023-05-02 12:19:00 +07:00
parent e951d268a3
commit b66525d148
9 changed files with 127 additions and 45 deletions

View File

@@ -0,0 +1,11 @@
import { MediaOutlet, MediaPlayer } from '@vidstack/react';
export default function VideoPreview({ urls }: { urls: string[] }) {
return (
<div onClick={(e) => e.stopPropagation()} className="relative mt-2 flex w-full flex-col rounded-lg bg-zinc-950">
<MediaPlayer src={urls[0]} poster="" controls>
<MediaOutlet />
</MediaPlayer>
</div>
);
}