export interface Product { id: string; nameKey: string; slug: string; shortDescriptionKey: string; longDescriptionKey?: string; images: string[]; model3D?: string; specs: { key: string; value: string }[]; } // Sample products data export const products: Product[] = [ { id: "1", nameKey: "products_list.pump_1.name", slug: "schotchik-pump", shortDescriptionKey: "products_list.pump_1.shortDescription", longDescriptionKey: "products_list.pump_1.description", images: ["/images/pump-1.jpg", "/images/pump-1-alt.jpg"], specs: [ { key: "Flow Rate", value: "100 L/min" }, { key: "Pressure", value: "10 bar" }, { key: "Power", value: "5.5 kW" }, { key: "Temperature Range", value: "-10°C to 60°C" }, ], }, { id: "2", nameKey: "products_list.pump_2.name", slug: "agregat-pump", shortDescriptionKey: "products_list.pump_2.shortDescription", longDescriptionKey: "products_list.pump_2.description", images: ["/images/pump-2.jpg", "/images/pump-2-alt.jpg"], specs: [ { key: "Flow Rate", value: "250 L/min" }, { key: "Pressure", value: "15 bar" }, { key: "Power", value: "11 kW" }, { key: "Temperature Range", value: "-10°C to 70°C" }, ], }, { id: "3", nameKey: "products_list.pump_3.name", slug: "ccl-20-24-pump", shortDescriptionKey: "products_list.pump_3.shortDescription", longDescriptionKey: "products_list.pump_3.description", images: ["/images/pump-3.jpg", "/images/pump-3-alt.jpg"], specs: [ { key: "Depth Rating", value: "20-24 m" }, { key: "Flow Rate", value: "150 L/min" }, { key: "Suction Lift", value: "7 m" }, { key: "Power", value: "7.5 kW" }, ], }, ]; export function getProductBySlug(slug: string): Product | undefined { return products.find((p) => p.slug === slug); } export function getAllProducts(): Product[] { return products; }