# sanitizeSharingProducts

> **sanitizeSharingProducts**(`input`): [`SharingPageProduct`](/developers/references/core-sdk/index/type-aliases/sharingpageproduct/)[] \| `undefined`

Defined in: utils/product/sanitizeProducts.ts:131

Returns `undefined` (not `[]`) when nothing usable came out —
`openSharingPage` / `displaySharingPage` skip the product card section then.

## Parameters

### input

`unknown`

## Returns

[`SharingPageProduct`](/developers/references/core-sdk/index/type-aliases/sharingpageproduct/)[] \| `undefined`