mirror of
https://github.com/actionbook/actionbook.git
synced 2026-09-19 03:28:06 +08:00
23 lines
679 B
TypeScript
23 lines
679 B
TypeScript
import Link from 'next/link';
|
|
import { LangSwitcher } from './LangSwitcher';
|
|
|
|
export function Layout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<>
|
|
<nav className="site-nav">
|
|
<Link href="/" className="nav-logo">
|
|
<strong>json-ui</strong>
|
|
<span className="nav-subtitle">Report Viewer</span>
|
|
</Link>
|
|
<LangSwitcher />
|
|
</nav>
|
|
<main className="site-main">{children}</main>
|
|
<footer className="site-footer">
|
|
<p>
|
|
Built with <a href="https://github.com/actionbook/actionbook" target="_blank" rel="noopener noreferrer">Actionbook json-ui</a>
|
|
</p>
|
|
</footer>
|
|
</>
|
|
);
|
|
}
|