export async function getProduct(id: string) {
// Simulate real server work: DB query, pricing engine, etc.
await new Promise((r) => setTimeout(r, 2000));
return {
id,
name: `Product ${id}`,
price: (Number(id) * 7.99).toFixed(2),
description: `Details of Product ${id}`,
};
}
export async function getProduct(id: string) {
// Simulate real server work: DB query, pricing engine, etc.
await new Promise((r) => setTimeout(r, 2000));
return {
id,
name: `Product ${id}`,
price: (Number(id) * 7.99).toFixed(2),
description: `Details of Product ${id}`,
};
}