import SwiftUI
struct MenuSection: Codable, Identifiable {
var id: UUID
var name: String
var items: [MenuItem]
}
struct MenuItem: Codable, Equatable, Identifiable {
var id: UUID
var name: String
var recipe: String
var ingredient: String
var instruction: String
var emTipTitle: String
var emTip: String
var mainImage: String {
name.replacingOccurrences(of: " ", with: "-").lowercased()
}
#if DEBUG
static let example = MenuItem(id: UUID(), name: "Maple French Toast", recipe: "Breakfast Icecream", ingredient: "Sweet, fluffy, and served piping hot, our French toast is flown in fresh every day from Maple City, Canada, which is where all maple syrup in the world comes from. And if you believe that, we have some land to sell you…", instruction: "Cook it", emTipTitle: "Energy management", emTip: "Practice 5 minute rule")
#endif
}
struct Menu_Previews: PreviewProvider {
static var previews: some View {
Text("Full Self Drive 365!")
}
}