mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
e1f99a7d01
* Rewrite admin. * Clean up password forms. * Fix naming issues. * CSS Naming.
16 lines
412 B
JavaScript
16 lines
412 B
JavaScript
import classNames from 'classnames';
|
|
import styles from './Page.module.css';
|
|
import { Banner, Loading } from 'react-basics';
|
|
|
|
export default function Page({ className, error, loading, children }) {
|
|
if (error) {
|
|
return <Banner variant="error">Something went wrong.</Banner>;
|
|
}
|
|
|
|
if (loading) {
|
|
return <Loading />;
|
|
}
|
|
|
|
return <div className={classNames(styles.page, className)}>{children}</div>;
|
|
}
|