import{jsxs as s,Fragment as m,jsx as r}from"react/jsx-runtime";import{B as t,c as n}from"./ui-components-B24mpb8o.js";import{usePage as h,Link as i}from"@inertiajs/react";import{ChevronLeft as a,ChevronRight as d}from"lucide-react";import"next-themes";import"sonner";import"react";import"@radix-ui/react-label";import"class-variance-authority";import"@radix-ui/react-checkbox";import"@radix-ui/react-avatar";import"@radix-ui/react-dropdown-menu";import"@radix-ui/react-scroll-area";import"@radix-ui/react-popover";import"@radix-ui/react-radio-group";import"@radix-ui/react-dialog";import"@radix-ui/react-slot";import"clsx";import"@radix-ui/react-separator";import"@radix-ui/react-tooltip";import"@radix-ui/react-tabs";import"@radix-ui/react-accordion";import"@radix-ui/react-progress";import"@radix-ui/react-select";import"cmdk";import"@radix-ui/react-switch";import"react-day-picker";import"@radix-ui/react-slider";import"embla-carousel-react";import"@radix-ui/react-toggle-group";import"vaul";import"tailwind-merge";const Q=({className:e})=>{const{props:p}=h(),{watchHistory:o}=p;return s(m,{children:[o.prev_watching_id?r(i,{href:route("course.player",{type:o.prev_watching_type,watch_history:o.id,lesson_id:o.prev_watching_id}),children:r(t,{variant:"outline",className:n("bg-secondary-foreground text-primary-foreground hover:bg-secondary-foreground hover:text-primary-foreground absolute top-1/2 left-0 z-10 h-10 w-8 -translate-y-1/2 rounded-none rounded-r border-none p-0 shadow-none hover:opacity-85",e),children:r(a,{className:"!h-6 !w-6"})})}):r(t,{disabled:!0,variant:"outline",className:n("bg-secondary-foreground text-primary-foreground hover:bg-secondary-foreground hover:text-primary-foreground absolute top-1/2 left-0 z-10 h-10 w-8 -translate-y-1/2 rounded-none rounded-r border-none p-0 shadow-none",e),children:r(a,{className:"!h-6 !w-6"})}),o.next_watching_id?r(i,{href:route("course.player",{type:o.next_watching_type,watch_history:o.id,lesson_id:o.next_watching_id}),children:r(t,{variant:"outline",className:n("bg-secondary-foreground text-primary-foreground hover:bg-secondary-foreground hover:text-primary-foreground absolute top-1/2 right-0 z-10 h-10 w-8 -translate-y-1/2 rounded-none rounded-l border-none p-0 shadow-none hover:opacity-85",e),children:r(d,{className:"!h-6 !w-6"})})}):r(t,{disabled:!0,variant:"outline",className:n("bg-secondary-foreground text-primary-foreground hover:bg-secondary-foreground hover:text-primary-foreground absolute top-1/2 right-0 z-10 h-10 w-8 -translate-y-1/2 rounded-none rounded-l border-none p-0 shadow-none",e),children:r(d,{className:"!h-6 !w-6"})})]})};export{Q as default};
