first commit

This commit is contained in:
Nermin Karic
2026-11-22 21:49:17 +01:00
commit f5e2fcbf98
693 changed files with 82975 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { HttpTypes } from "@medusajs/types"
export const isVariantInStock = (
variant: HttpTypes.StoreProductVariant | undefined
) =>
!!variant &&
(!variant.manage_inventory ||
!!variant.allow_backorder ||
(variant.inventory_quantity ?? 0) > 0)