summaryrefslogtreecommitdiff
path: root/src/components/shared/RotateIcon.tsx
blob: 0a5a018063dc389345854cece125d0370000508a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import cx from 'clsx';
import * as React from 'react';
import { RotateCw } from '~/components/shared/FeatherIcons';

import s from './RotateIcon.module.scss';

export function RotateIcon({ isRotating }: { isRotating: boolean }) {
  const cls = cx(s.rotate, {
    [s.isRotating]: isRotating,
  });
  return (
    <span className={cls}>
      <RotateCw width={16} />
    </span>
  );
}