forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
447 B
16 lines
447 B
// Libraries
|
|
import React, { FC } from 'react';
|
|
import { cx } from '@emotion/css';
|
|
|
|
// Components
|
|
import PageLoader from '../PageLoader/PageLoader';
|
|
|
|
interface Props {
|
|
isLoading?: boolean;
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export const PageContents: FC<Props> = ({ isLoading, children, className }) => {
|
|
return <div className={cx('page-container', 'page-body', className)}>{isLoading ? <PageLoader /> : children}</div>;
|
|
};
|
|
|