import{u as h,j as r,L as a,ba as s,a3 as d}from"./vendor-BKmmeuxg.js";import{B as n}from"./button-BpNwv2aE.js";import{c as t}from"./utils-DxSsnXxD.js";import"./index-WW_1X1qx.js";const p=({className:o})=>{const{props:i}=h(),{watchHistory:e}=i;return r.jsxs(r.Fragment,{children:[e.prev_watching_id?r.jsx(a,{href:route("course.player",{type:e.prev_watching_type,watch_history:e.id,lesson_id:e.prev_watching_id}),children:r.jsx(n,{variant:"outline",className:t("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",o),children:r.jsx(s,{className:"!h-6 !w-6"})})}):r.jsx(n,{disabled:!0,variant:"outline",className:t("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",o),children:r.jsx(s,{className:"!h-6 !w-6"})}),e.next_watching_id?r.jsx(a,{href:route("course.player",{type:e.next_watching_type,watch_history:e.id,lesson_id:e.next_watching_id}),children:r.jsx(n,{variant:"outline",className:t("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",o),children:r.jsx(d,{className:"!h-6 !w-6"})})}):r.jsx(n,{disabled:!0,variant:"outline",className:t("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",o),children:r.jsx(d,{className:"!h-6 !w-6"})})]})};export{p as default};