aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/app/first-time/loading-screen.js
blob: 596f818ca2d5c18a952499c37e6b41c7a13f758c (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,
}