import React from "react"; export default function BottomNav({ view, setView, setSelectedBean, onCreatePress }) { const items = [ { id: "dashboard", label: "Home", icon: "🏠" }, { id: "beans", label: "Recipes", icon: "🫘" }, { id: "create", label: "Create", icon: "+", isAction: true }, { id: "brews", label: "Logs", icon: "📋" }, { id: "profile", label: "Profile", icon: "👤" }, ]; return (
{items.map(item => { const isActive = view === item.id; if (item.isAction) { return ( ); } return ( ); })}
); }