* applied eslint * add locales and lint the project * removed error boundary * updated locales * fix min files * fix locales
22 lines
515 B
TypeScript
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>
|
|
);
|
|
}
|