import { HttpTypes } from "@medusajs/types"
import { StatusBadge } from "@medusajs/ui"
import { ListSummary } from "../../../components/common/list-summary"
import { PlaceholderCell } from "../../../components/table/table-cells/common/placeholder-cell"
import { defineCellRenderer } from "../../../lib/table/cell-renderers"
import { FulfillmentSetType } from "../common/constants"
/**
* Stock-location-specific cell renderers, registered in the GLOBAL registry so
* consuming apps can override them. Imported for its side effect by the
* configurable location table.
*/
const fulfillmentRenderer = (setType: FulfillmentSetType) => ({
render: (_value: any, row: any, _column: any, t: any) => {
const location = row as HttpTypes.AdminStockLocation
const exists = !!location.fulfillment_sets?.find((f) => f.type === setType)
return (