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

const Loading: FC = () => {
    const theme = useTheme()
    return (
        <div>
            <Section>
                <Title>Loading...</Title>

                <div style={{ color: theme.secondary, padding: '5rem', textAlign: 'center' }}>
                    <FontAwesomeIcon icon={faCircleNotch} spin size="4x" />
                </div>
            </Section>
        </div>
    )
}

export default Loading
