2019-01-08 01:38:43 -06:00
|
|
|
// Libraries
|
2021-02-20 02:02:06 -06:00
|
|
|
import React, { FC } from 'react';
|
2021-04-07 00:42:43 -05:00
|
|
|
import { cx } from '@emotion/css';
|
2019-01-08 01:38:43 -06:00
|
|
|
|
|
|
|
// Components
|
|
|
|
import PageLoader from '../PageLoader/PageLoader';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
isLoading?: boolean;
|
2020-07-08 04:05:20 -05:00
|
|
|
children: React.ReactNode;
|
2021-04-07 00:42:43 -05:00
|
|
|
className?: string;
|
2019-01-08 01:38:43 -06:00
|
|
|
}
|
|
|
|
|
2021-04-07 00:42:43 -05:00
|
|
|
export const PageContents: FC<Props> = ({ isLoading, children, className }) => {
|
|
|
|
return <div className={cx('page-container', 'page-body', className)}>{isLoading ? <PageLoader /> : children}</div>;
|
2021-02-20 02:02:06 -06:00
|
|
|
};
|