mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
16 lines
364 B
TypeScript
16 lines
364 B
TypeScript
import React from 'react';
|
|
|
|
import { Box, LoadingPlaceholder } from '@grafana/ui';
|
|
|
|
export interface Props {
|
|
text?: string;
|
|
}
|
|
|
|
export const Loader = ({ text = 'Loading...' }: Props) => {
|
|
return (
|
|
<Box display="flex" alignItems="center" direction="column" justifyContent="center" paddingTop={10}>
|
|
<LoadingPlaceholder text={text} />
|
|
</Box>
|
|
);
|
|
};
|