import React, { useState } from "react"; import { motion, AnimatePresence } from "motion/react"; import { ChevronRight, PlayCircle, Star, ShieldCheck, X, Search, Clock, User } from "lucide-react"; import { Product, PRODUCTS } from "../data/products"; const ALL_VIDEOS = [ { id: "v1", title: "نحوه آماده‌سازی کانی‌هیدروکس", doctor: "دکتر کلاوس هنینگ", duration: "۱:۴۵", thumbnail: "https://images.unsplash.com/photo-1576091160550-217359f42f8c?auto=format&fit=crop&q=80&w=600", videoUrl: "https://www.w3schools.com/html/mov_bbb.mp4", description: "آموزش گام به گام آماده‌سازی پودر Canhydrox GAG برای جذب حداکثری در دستگاه گوارش." }, { id: "v2", title: "اهمیت صدف لب‌سبز برای غضروف", doctor: "دکتر النا اشمیت", duration: "۲:۲۰", thumbnail: "https://images.unsplash.com/photo-1599443015574-be5fe8a05783?auto=format&fit=crop&q=80&w=600", videoUrl: "https://www.w3schools.com/html/movie.mp4", description: "چرا صدف لب‌سبز نیوزیلندی نایاب‌ترین و موثرترین ماده برای بازسازی مفصل است؟" }, { id: "v3", title: "تغذیه هوشمند توله‌سگ‌های نژاد بزرگ", doctor: "دکتر هلگا فیشر", duration: "۳:۱۰", thumbnail: "https://images.unsplash.com/photo-1583337130417-3346a1be7dee?auto=format&fit=crop&q=80&w=600", videoUrl: "https://www.w3schools.com/html/mov_bbb.mp4", description: "دوز مصرفی مکمل‌های کلسیم در نژادهای بزرگ برای جلوگیری از بدشکلی‌های استخوانی." }, { id: "v4", title: "تاثیر امگا ۳ بر ریزش مو فصلی", doctor: "دکتر ماری کونیگ", duration: "۵:۱۵", thumbnail: "https://images.unsplash.com/photo-1516734212186-a967f81ad0d7?auto=format&fit=crop&q=80&w=600", videoUrl: "https://www.w3schools.com/html/movie.mp4", description: "چربی‌های ضروری چگونه لایه محافظ پوست را بازسازی می‌کنند." }, { id: "v5", title: "سم‌زدایی گوارشی با اسید هومیک", doctor: "دکتر ریکاردو کوخ", duration: "۴:۰۰", thumbnail: "https://images.unsplash.com/photo-1581594693702-fbdc51b2763b?auto=format&fit=crop&q=80&w=600", videoUrl: "https://www.w3schools.com/html/mov_bbb.mp4", description: "مکانیزم عمل Moor-Tranke در جذب توکسین‌های روده‌ای." } ]; export default function VideosPage({ onBack }: { onBack: () => void }) { const [selectedVideo, setSelectedVideo] = useState(null); const [search, setSearch] = useState(""); const filteredVideos = ALL_VIDEOS.filter(v => v.title.includes(search) || v.doctor.includes(search) ); return (
{/* Header */}
Video Academy

آکادمی ویدئویی کانینا

{/* Search Bar */}
setSearch(e.target.value)} className="w-full bg-white/5 border border-white/10 rounded-[2rem] py-5 pr-14 pl-6 text-white outline-none focus:bg-white/10 transition-all font-bold" />
{/* Video Grid */}
{filteredVideos.map((video, idx) => ( setSelectedVideo(video)} >
{video.title}
{video.duration}

{video.title}

{video.doctor}
دسترسی دائمی
))}
{/* Video Modal */} {selectedVideo && (
setSelectedVideo(null)} className="absolute inset-0 bg-black/95 backdrop-blur-xl" />
)}
); }