import { useCallback } from "react";
import { Icons } from "@/components/Icon";
import { VideoPlayerButton } from "@/components/player/internals/Button";
import { usePlayerStore } from "@/stores/player/store";
export function SkipForward(props: { iconSizeClass?: string }) {
const display = usePlayerStore((s) => s.display);
const time = usePlayerStore((s) => s.progress.time);
const commit = useCallback(() => {
display?.setTime(time + 10);
}, [display, time]);
return (
);
}
export function SkipBackward(props: { iconSizeClass?: string }) {
const display = usePlayerStore((s) => s.display);
const time = usePlayerStore((s) => s.progress.time);
const commit = useCallback(() => {
display?.setTime(time - 10);
}, [display, time]);
return (
);
}