mirror of
https://github.com/bspeice/speice.io
synced 2024-11-14 22:18:10 -05:00
21 lines
409 B
TypeScript
21 lines
409 B
TypeScript
|
import { PropsWithChildren } from "react";
|
||
|
|
||
|
import "./style.css";
|
||
|
|
||
|
const Sidebar: React.FC = () => (
|
||
|
<span className={"navbar"}>
|
||
|
<a href="/">Home</a>/<a href="/about">About</a>
|
||
|
</span>
|
||
|
);
|
||
|
|
||
|
const Layout: React.FC<PropsWithChildren> = ({ children }) => (
|
||
|
<div className="gridOffset">
|
||
|
<div className="gridOffsetSide">
|
||
|
<Sidebar />
|
||
|
</div>
|
||
|
{children}
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
export default Layout;
|