import { Icons } from "@/components/Icon";
import { useTranslation } from "react-i18next";
import { PopoutListAction } from "../../popouts/PopoutUtils";

interface Props {
  onClick: () => any;
}

export function PlaybackSpeedSelectionAction(props: Props) {
  const { t } = useTranslation();

  return (
    <PopoutListAction icon={Icons.TACHOMETER} onClick={props.onClick}>
      {t("videoPlayer.buttons.playbackSpeed")}
    </PopoutListAction>
  );
}
