openreplay/frontend/app/player-ui/SkipButton.tsx
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

22 lines
515 B
TypeScript

import React from 'react';
import { Icon } from 'UI';
import cn from 'classnames';
import { ForwardOutlined } from '@ant-design/icons';
interface IProps {
size: number;
onClick: () => void;
isBackwards?: boolean;
customClasses: string;
}
export function SkipButton({ onClick, isBackwards, customClasses }: IProps) {
return (
<div
onClick={onClick}
className={cn('py-1 px-2 cursor-pointer', customClasses)}
>
<ForwardOutlined rotate={isBackwards ? 180 : 0} />
</div>
);
}