aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/Loading.tsx
blob: adee4f0ead4783786893e420744855b73af8d4d8 (plain) (blame)
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
/*
 * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
 *
 * SPDX-License-Identifier: EPL-2.0
 */

import CircularProgress from '@mui/material/CircularProgress';
import { styled } from '@mui/material/styles';

const LoadingRoot = styled('div')(({ theme }) => ({
  width: '100%',
  height: '100%',
  display: 'flex',
  alignItems: 'center',
  justifyContent: 'center',
  background: theme.palette.outer.background,
}));

export default function Loading() {
  return (
    <LoadingRoot>
      <CircularProgress size={60} color="inherit" />
    </LoadingRoot>
  );
}