import React, { useState, useEffect, useMemo } from 'react'; import { VirtualTable } from './VirtualTable'; import { SearchAndFilter } from './SearchAndFilter'; import { StatsOverview } from './StatsOverview'; import { Button } from './ui/button'; import { ThemeProvider } from './ThemeProvider'; import { ThemeToggle } from './ThemeToggle'; import type { VideoData } from '../types/video'; import { searchVideos, filterVideos } from '../utils/search'; interface ApiResponse { videos?: VideoData[]; error?: string; message?: string; } export default function VideoClassifierApp({ videos }: { videos: VideoData[] }) { const [searchTerm, setSearchTerm] = useState(''); const [filters, setFilters] = useState({ classification: 'all', language: 'all', playlist_name: 'all' }); // Filter and search data const filteredData = useMemo(() => { let result = videos; // Apply filters result = filterVideos(result, filters); // Apply search result = searchVideos(result, searchTerm); return result; }, [videos, searchTerm, filters]); if (!videos) { return (
It seems the video_classifications.csv file is missing or not properly configured.
To fix this:
video_classifications.csv exists in your project rootAI-powered video classification and management platform. Search, filter, and organize your YouTube video collection with intelligent categorization.
Try adjusting your search terms or filters
Your CSV file appears to be empty
{videos.length} videos indexed