Loader.tsx 297 B

123456789101112131415
  1. import React from 'react';
  2. import { LoadingPlaceholder } from '@grafana/ui';
  3. export interface Props {
  4. text?: string;
  5. }
  6. export const Loader = ({ text = 'Loading...' }: Props) => {
  7. return (
  8. <div className="page-loader-wrapper">
  9. <LoadingPlaceholder text={text} />
  10. </div>
  11. );
  12. };