mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-18 15:35:26 +02:00
24 lines
570 B
TypeScript
24 lines
570 B
TypeScript
import {ReactElement} from "react"
|
|
import {useTranslation} from "react-i18next"
|
|
|
|
import {CircularProgress, Grid, Typography} from "@mui/material"
|
|
|
|
export interface LoadingDataProps {
|
|
message?: string
|
|
}
|
|
|
|
export default function LoadingData({message = "Loading"}: LoadingDataProps): ReactElement {
|
|
const {t} = useTranslation()
|
|
|
|
return (
|
|
<Grid container spacing={2} direction="column" alignItems="center">
|
|
<Grid item>
|
|
<CircularProgress />
|
|
</Grid>
|
|
<Grid item>
|
|
<Typography variant="caption">{t("general.loading")}</Typography>
|
|
</Grid>
|
|
</Grid>
|
|
)
|
|
}
|