meal_planner/src/layouts/PageLayout.tsx
Ruidy 8409d09373
refactoring (#6)
* use tsx

* compile

* refactor Router

* refactor layout

* refactor home container

* refactor meal container

* refactor categories container

* refactor category container

* refactor search and profile container

* refactor

* move state over

* move state over

* css

* css
2021-03-29 12:37:53 +02:00

14 lines
258 B
TypeScript

import { FC } from "react";
type Props = {
title: string;
};
const PageLayout: FC<Props> = ({ title, children }) => (
<div className="container">
<h1 className="logo">{title}</h1>
<main>{children}</main>
</div>
);
export default PageLayout;