import { useQuery } from "@tanstack/react-query"; import { continueWatching } from "../api"; import VideoCard from "../components/VideoCard"; export default function ContinueWatchingPage() { const { data: videos = [], isLoading } = useQuery({ queryKey: ["continue-watching"], queryFn: () => continueWatching().then((r) => r.data), staleTime: 30_000, }); return (
Nothing in progress
Videos you've started but not finished will appear here.
{videos.length} video{videos.length !== 1 ? "s" : ""} in progress