mirror of
https://github.com/sussy-code/smov.git
synced 2026-04-21 00:22:06 +00:00
19 lines
443 B
TypeScript
19 lines
443 B
TypeScript
import { useTranslation } from "react-i18next";
|
|
|
|
import { Icons } from "@/components/Icon";
|
|
|
|
import { PopoutListAction } from "../../popouts/PopoutUtils";
|
|
|
|
interface Props {
|
|
onClick: () => any;
|
|
}
|
|
|
|
export function CaptionsSelectionAction(props: Props) {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<PopoutListAction icon={Icons.CAPTIONS} onClick={props.onClick}>
|
|
{t("videoPlayer.buttons.captions")}
|
|
</PopoutListAction>
|
|
);
|
|
}
|