import { useState } from "react"; import { useLocation } from "wouter"; import { ChefHat, Clock, Users } from "lucide-react"; interface WidgetRecipe { title: string; image: string; time: string; servings: string; } const WIDGET_RECIPES: WidgetRecipe[] = [ { title: "Kaiserschmarrn", image: "/uploads/recipe-kaiserschmarrn.jpg", time: "25 Min.", servings: "2" }, { title: "Wiener Schnitzel", image: "/uploads/recipe-wiener-schnitzel.jpg", time: "30 Min.", servings: "4" }, { title: "Apfelstrudel", image: "/uploads/recipe-apfelstrudel.jpg", time: "60 Min.", servings: "6" }, { title: "Schweinshaxe", image: "/uploads/recipe-schweinshaxe.jpg", time: "180 Min.", servings: "4" }, { title: "Käsespätzle", image: "/uploads/recipe-kaesespaetzle.jpg", time: "45 Min.", servings: "4" }, { title: "Sachertorte", image: "/uploads/recipe-sachertorte.jpg", time: "90 Min.", servings: "8" }, { title: "Maultaschen", image: "/uploads/recipe-maultaschen.jpg", time: "90 Min.", servings: "4" }, { title: "Schlutzkrapfen", image: "/uploads/recipe-schlutzkrapfen.jpg", time: "60 Min.", servings: "4" }, ]; export function RecipeWidget() { const [, navigate] = useLocation(); const dayIndex = Math.floor(Date.now() / 86400000) % WIDGET_RECIPES.length; const recipe = WIDGET_RECIPES[dayIndex]; return ( ); }