mirror of
https://github.com/Radarr/Radarr
synced 2025-12-22 08:15:36 +01:00
32 lines
666 B
TypeScript
32 lines
666 B
TypeScript
import React from 'react';
|
|
import SpinnerIcon from 'Components/SpinnerIcon';
|
|
import { icons } from 'Helpers/Props';
|
|
import styles from './CollectionFooterLabel.css';
|
|
|
|
interface CollectionFooterLabelProps {
|
|
className?: string;
|
|
label: string;
|
|
isSaving: boolean;
|
|
}
|
|
|
|
function CollectionFooterLabel({
|
|
className = styles.label,
|
|
label,
|
|
isSaving,
|
|
}: CollectionFooterLabelProps) {
|
|
return (
|
|
<div className={className}>
|
|
{label}
|
|
|
|
{isSaving ? (
|
|
<SpinnerIcon
|
|
className={styles.savingIcon}
|
|
name={icons.SPINNER}
|
|
isSpinning={true}
|
|
/>
|
|
) : null}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default CollectionFooterLabel;
|