18 lines
446 B
TypeScript
18 lines
446 B
TypeScript
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="فروش ویژه"
|
|
/>
|
|
);
|
|
}
|