mirror of
https://github.com/grafana/grafana.git
synced 2025-09-20 07:44:29 +08:00
19 lines
464 B
TypeScript
19 lines
464 B
TypeScript
import React, { FC } 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: FC<Props> = ({ children, pageId, pageNav, isLoading }) => {
|
|
return (
|
|
<Page pageNav={pageNav} navId={pageId}>
|
|
<Page.Contents isLoading={isLoading}>{children}</Page.Contents>
|
|
</Page>
|
|
);
|
|
};
|