import React from 'react'; import { FileText, CheckCircle2, Layers } from 'lucide-react'; import { Recipe } from '../types'; import { PanelHeader } from './common/PanelHeader'; import { TechButton } from './common/TechButton'; interface RecipePanelProps { recipes: Recipe[]; currentRecipe: Recipe; onSelectRecipe: (r: Recipe) => void; } export const RecipePanel: React.FC = ({ recipes, currentRecipe, onSelectRecipe }) => (
{recipes.map(r => (
onSelectRecipe(r)} className={` p-3 cursor-pointer flex justify-between items-center transition-all border-l-4 ${currentRecipe.id === r.id ? 'bg-white/10 border-neon-blue text-white shadow-[inset_0_0_20px_rgba(0,243,255,0.1)]' : 'bg-black/20 border-transparent text-slate-500 hover:bg-white/5 hover:text-slate-300'} `} >
{r.name}
{r.lastModified}
{currentRecipe.id === r.id && }
))}
New Recipe
);