mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-24 22:36:19 -04:00
24 lines
520 B
TypeScript
24 lines
520 B
TypeScript
import React from 'react';
|
|
import { icons } from 'Helpers/Props';
|
|
import Icon, { IconName, IconProps } from './Icon';
|
|
|
|
export interface SpinnerIconProps extends IconProps {
|
|
spinningName?: IconName;
|
|
isSpinning: Required<IconProps['isSpinning']>;
|
|
}
|
|
|
|
export default function SpinnerIcon({
|
|
name,
|
|
spinningName = icons.SPINNER,
|
|
isSpinning,
|
|
...otherProps
|
|
}: SpinnerIconProps) {
|
|
return (
|
|
<Icon
|
|
name={(isSpinning && spinningName) || name}
|
|
isSpinning={isSpinning}
|
|
{...otherProps}
|
|
/>
|
|
);
|
|
}
|