Build the Salar Store storefront and connect products, blogs, and home specials to the Meshkee API.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
2783305f07
commit
7d26eaa838
@@ -0,0 +1,17 @@
|
||||
import { PLACEHOLDER } from "@/lib/data";
|
||||
import { getSpecialProducts } from "@/lib/mappers";
|
||||
import { ProductShelf } from "./ProductShelf";
|
||||
|
||||
export async function SpecialSale() {
|
||||
const products = await getSpecialProducts("Special-Sale");
|
||||
if (!products.length) return null;
|
||||
|
||||
return (
|
||||
<ProductShelf
|
||||
id="special-sale"
|
||||
image={PLACEHOLDER.specialSale}
|
||||
products={products}
|
||||
ariaLabel="فروش ویژه"
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user