mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* WIP Custom themes * Load custom themes from URL and via event * Dynamic page background * Header color change * Fixing tests and emotion warnings * Fixed test * moving cx to getStyles * Review fixes * minor change
15 lines
359 B
TypeScript
15 lines
359 B
TypeScript
// Libraries
|
|
import React, { FC } from 'react';
|
|
|
|
// Components
|
|
import PageLoader from '../PageLoader/PageLoader';
|
|
|
|
interface Props {
|
|
isLoading?: boolean;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const PageContents: FC<Props> = ({ isLoading, children }) => {
|
|
return <div className="page-container page-body">{isLoading ? <PageLoader /> : children}</div>;
|
|
};
|