grafana/public/app/core/components/Page/PageContents.tsx
Torkel Ödegaard 3e55c967ee
Theming: Support for runtime theme switching and hooks for custom themes (#31301)
* 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
2021-02-20 09:02:06 +01:00

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>;
};