mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-12 13:26:45 +00:00
15 lines
401 B
TypeScript
15 lines
401 B
TypeScript
import React from "react";
|
|
import PageLayout from "../layouts/PageLayout";
|
|
import CategoryEntry from "../components/CategoryEntry";
|
|
|
|
export const CategoryListPage = ({ categories }) => {
|
|
return (
|
|
<PageLayout title="Chef's Categories">
|
|
<ul>
|
|
{categories.map((category, i) => (
|
|
<CategoryEntry key={i} category={category} />
|
|
))}
|
|
</ul>
|
|
</PageLayout>
|
|
);
|
|
};
|