From 3eb791d4a1d0c61414198f525944015642833b35 Mon Sep 17 00:00:00 2001 From: Tetardtek Date: Sun, 15 Mar 2026 02:53:34 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20VideoPage=20=E2=80=94=20ajouter=20?= =?UTF-8?q?=C3=A0=20une=20playlist=20(owned=20+=20edit-permitted)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/VideoPage.tsx | 76 ++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/frontend/src/pages/VideoPage.tsx b/frontend/src/pages/VideoPage.tsx index e4e6554..a849d96 100644 --- a/frontend/src/pages/VideoPage.tsx +++ b/frontend/src/pages/VideoPage.tsx @@ -1,6 +1,7 @@ import { useState, useEffect } from 'react'; import { useParams, Link } from 'react-router-dom'; import { apiFetch, ApiError } from '../lib/api'; +import { useAuthContext } from '../context/AuthContext'; import VideoPlayer from '../components/VideoPlayer'; interface Video { @@ -20,8 +21,14 @@ interface VideoResponse { data: { video: Video }; } +interface Playlist { + id: string; + title: string; +} + export default function VideoPage() { const { id } = useParams<{ id: string }>(); + const { user } = useAuthContext(); const [video, setVideo] = useState