refactor(app): split page orchestration flows
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { MobileShell } from "./mobile-shell";
|
||||
import styles from "./page-loading-fallback.module.css";
|
||||
|
||||
export interface PageLoadingFallbackProps {
|
||||
children: string;
|
||||
background?: string;
|
||||
tone?: "neutral" | "dark" | "warm";
|
||||
}
|
||||
|
||||
export function PageLoadingFallback({
|
||||
children,
|
||||
background,
|
||||
tone = "neutral",
|
||||
}: PageLoadingFallbackProps) {
|
||||
return (
|
||||
<MobileShell background={background}>
|
||||
<div className={`${styles.content} ${styles[tone]}`}>{children}</div>
|
||||
</MobileShell>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user