diff --git a/src/pages/tutorial/section/components/Leran.tsx b/src/pages/tutorial/section/components/Leran.tsx index 1636ac9..7597a0f 100644 --- a/src/pages/tutorial/section/components/Leran.tsx +++ b/src/pages/tutorial/section/components/Leran.tsx @@ -13,7 +13,7 @@ const getMediaType = (url: string) => { if (["jpg", "jpeg", "png", "gif"].includes(extension)) { return "image"; } - if (["mp4", "webm", "ogg"].includes(extension)) { + if (["mp4", "webm", "ogg", "mov", "avi", "wmv"].includes(extension)) { return "video"; } } @@ -117,6 +117,7 @@ const Learn = ({ activeTutorial }: LearnProps) => { id: string; title: string; medias: string[]; + file: string | null; url_file: string; }) => (
{ className="w-full h-full object-cover rounded-lg" /> ) : mediaType === "video" ? ( -
); })} + {i.file && ( + + )} {i.url_file && ( <>