toggle-corp/react-store

View on GitHub
components/View/Spinner/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import PropTypes from 'prop-types';
import { _cs } from '@togglecorp/fujs';

import Icon from '../../General/Icon';
import styles from './styles.scss';

const Spinner = (props) => {
    const { className } = props;

    return (
        <Icon
            name="loading"
            className={_cs(styles.spinner, 'spinner', className)}
        />
    );
};

Spinner.propTypes = {
    className: PropTypes.string,
};

Spinner.defaultProps = {
    className: '',
};

export default Spinner;