redesign mock route concepts
This commit is contained in:
parent
83b0944cb3
commit
e7924c8f11
4 changed files with 1169 additions and 214 deletions
|
|
@ -9441,6 +9441,23 @@ function SyntheticControlDock() {
|
|||
}
|
||||
|
||||
export function TerminalAppShell({ children }: { children: ReactNode }) {
|
||||
const pathname = nextNavigation.usePathname();
|
||||
|
||||
if (pathname?.startsWith("/mock")) {
|
||||
return (
|
||||
<div className="mock-shell">
|
||||
<a className="skip-link mock-skip-link" href="#mock-title">
|
||||
Skip to mock content
|
||||
</a>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return <TerminalChrome>{children}</TerminalChrome>;
|
||||
}
|
||||
|
||||
function TerminalChrome({ children }: { children: ReactNode }) {
|
||||
const state = useTerminalState();
|
||||
const pathname = nextNavigation.usePathname();
|
||||
const [drawerOpen, setDrawerOpen] = useState(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue