1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 21:14:18 +00:00
pds-2021-g2-nest/code/frontend/src/components/base/Loading.js

19 lines
424 B
JavaScript
Raw Normal View History

import React from "react"
import { faSpinner } from "@fortawesome/free-solid-svg-icons"
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome"
2021-04-29 14:58:31 +00:00
/**
* A div with a spinning dots icon and a "Loading..." text.
*
* @returns {JSX.Element}
* @constructor
*/
export default function Loading() {
return (
2021-04-29 14:58:31 +00:00
<div>
<FontAwesomeIcon icon={faSpinner} pulse={true}/> Loading...
</div>
)
}