export interface ProductVariant {
  id: string
  selections: {
    attributeId: string
    attributeName: string
    optionId: string
    value: string
  }[]
  label: string
}

export function buildVariantLabel(
  selections: { attributeName: string; value: string }[],
): string {
  return selections.map((s) => s.value).join(' · ')
}
