Newer
Older
import PlantCard from "./PlantCard";
Lukas Karsch
committed
type PlantsOverviewProps = {
plants: Plant[]
}

Karsch Lukas
committed
export default function PlantsOverview({plants} : PlantsOverviewProps) {
return (
<>
<ul
style={{
display: "flex",
flexWrap: "wrap",
Holzheu Hannah
committed
gap: "0.5rem",
width: "100%",
}}
>
{plants.map((plant) => (
<PlantCard plant={plant} key={plant.id} />
))}
</ul>
</>
);