mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
* First stab at new page layouts behind feature toggle * Simplifying PageHeader * Progress on a new model that can more easily support new and old page layouts * Progress * rename folder * Progress * Minor change * fixes * Fixing tests * Make breadcrumbs work * Add tests for old Page component * Adding tests for new Page component and behavior * fixing page header test * Fixed test * AppChrome outside route * Renaming folder * Minor fix * Updated * Fixing StoragePage * Fix for banners Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
15 lines
324 B
TypeScript
15 lines
324 B
TypeScript
// Libraries
|
|
import React, { FC } from 'react';
|
|
|
|
import PageLoader from '../PageLoader/PageLoader';
|
|
|
|
interface Props {
|
|
isLoading?: boolean;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export const PageContents: FC<Props> = ({ isLoading, children }) => {
|
|
return <>{isLoading ? <PageLoader /> : children}</>;
|
|
};
|