speice.io/pages/LayoutBase.tsx

21 lines
409 B
TypeScript
Raw Normal View History

2023-04-16 20:10:40 -04:00
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;