mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
19 lines
477 B
TypeScript
19 lines
477 B
TypeScript
import React from 'react';
|
|
|
|
import { NavModelItem } from '@grafana/data';
|
|
import { Page } from 'app/core/components/Page/Page';
|
|
|
|
interface Props {
|
|
pageId: string;
|
|
isLoading?: boolean;
|
|
pageNav?: NavModelItem;
|
|
}
|
|
|
|
export const AlertingPageWrapper = ({ children, pageId, pageNav, isLoading }: React.PropsWithChildren<Props>) => {
|
|
return (
|
|
<Page pageNav={pageNav} navId={pageId}>
|
|
<Page.Contents isLoading={isLoading}>{children}</Page.Contents>
|
|
</Page>
|
|
);
|
|
};
|