import classNames from 'classnames'; import { Banner, Loading } from 'react-basics'; import useMessages from 'hooks/useMessages'; import styles from './Page.module.css'; export function Page({ className, error, loading, children }) { const { formatMessage, messages } = useMessages(); if (error) { return {formatMessage(messages.error)}; } if (loading) { return ; } return
{children}
; } export default Page;