-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLoading.tsx
More file actions
executable file
·38 lines (36 loc) · 1.04 KB
/
Loading.tsx
File metadata and controls
executable file
·38 lines (36 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import React from "react";
import "./Loading.scss";
import { LoadingProps } from "./Loading.types";
const Loading: React.FC<LoadingProps> = ({ message = null, html = null }) => {
return (
<div className="govuk-grid-row">
<div className="govuk-grid-column-full">
{message || html ? (
<div className="govuk-grid-row">
<div className="govuk-grid-column-full head-space">
{html ? (
html
) : (
<h2 className="govuk-heading-m govuk-!-text-align-centre">
{message}
</h2>
)}
</div>
</div>
) : null}
<div className="govuk-hint govuk-grid-column-full">
<div
className="centered-wheel"
data-testid="centered-wheel-identifier"
>
<div
className="loading-wheel-2"
data-testid="loading-wheel-2-identifier"
/>
</div>
</div>
</div>
</div>
);
};
export default Loading;