mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
* 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
14 lines
258 B
TypeScript
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;
|