import React, { FC } from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCircleNotch } from '@fortawesome/free-solid-svg-icons'
import { useTheme } from '../hooks'

const Spinner: FC = () => {
    const theme = useTheme()
    return (
        <div className="spinner" style={{ color: theme.primary }}>
            <FontAwesomeIcon icon={faCircleNotch} spin size="lg" />
        </div>
    )
}

export default Spinner
