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