diff options
| author | Haishan <[email protected]> | 2021-02-28 17:06:00 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2021-02-28 18:04:18 +0800 |
| commit | ec4586ef3c92f7d5125cb06286a2e44c59a24bb3 (patch) | |
| tree | a9f217c163ae7218160fce5545d167d74ee9a591 /src/components/shared/RotateIcon.tsx | |
| parent | 27a66043403c7e619029bcf50dbc29893e173d07 (diff) | |
feat: add FAB action button to update all proxy providers
Diffstat (limited to 'src/components/shared/RotateIcon.tsx')
| -rw-r--r-- | src/components/shared/RotateIcon.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/shared/RotateIcon.tsx b/src/components/shared/RotateIcon.tsx new file mode 100644 index 0000000..e2d4ad8 --- /dev/null +++ b/src/components/shared/RotateIcon.tsx @@ -0,0 +1,16 @@ +import cx from 'clsx'; +import * as React from 'react'; +import { RotateCw } from 'react-feather'; + +import s from './RotateIcon.module.css'; + +export function RotateIcon({ isRotating }: { isRotating: boolean }) { + const cls = cx(s.rotate, { + [s.isRotating]: isRotating, + }); + return ( + <span className={cls}> + <RotateCw width={16} /> + </span> + ); +} |
