17 lines
365 B
TypeScript
17 lines
365 B
TypeScript
import { Outlet } from "react-router";
|
|||
|
|
import { TopBar } from "./TopBar";
|
||
|
|
|
||
|
|
/** Page frame: the top bar, then the routed page inside main.wrap. */
|
||
|
|
export function Layout() {
|
||
|
|
return (
|
||
|
|
<>
|
||
|
|
<TopBar>
|
||
|
|
<span className="proto">Rebuild preview</span>
|
||
|
|
</TopBar>
|
||
|
|
<main className="wrap" id="main">
|
||
|
|
<Outlet />
|
||
|
|
</main>
|
||
|
|
</>
|
||
|
|
);
|
||
|
|
}
|