ytptube/ui/app/utils/playerControls.ts
2026-05-05 23:01:50 +03:00

20 lines
309 B
TypeScript

type TapState = {
touch: boolean;
paused: boolean;
visible: boolean;
};
const nextTapVisible = ({ touch, paused, visible }: TapState): boolean => {
if (paused) {
return visible;
}
if (visible) {
return false;
}
return touch;
};
export { nextTapVisible };
export type { TapState };