import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils'; import { CoursePlayerProps } from '@/types/page'; import { Link, usePage } from '@inertiajs/react'; import { ChevronLeft, ChevronRight } from 'lucide-react'; const LessonControl = ({ className }: { className?: string }) => { const { props } = usePage(); const { watchHistory } = props; return ( <> {watchHistory.prev_watching_id ? ( ) : ( )} {watchHistory.next_watching_id ? ( ) : ( )} ); }; export default LessonControl;