aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/app/first-time/loading-screen.js
blob: 01e1c199898547b6d3aac9786fe0416af2407fa0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from 'react'
import PropTypes from 'prop-types'
import Spinner from './spinner'

export default function LoadingScreen({ className = '', loadingMessage }) {
  return (
    <div className={`${className} loading-screen`}>
      <Spinner color="#1B344D" />
      <div className="loading-screen__message">{loadingMessage}</div>
    </div>
  )
}

LoadingScreen.propTypes = {
  className: PropTypes.string,
  loadingMessage: PropTypes.string,
}