Skip to main content

Function: AddToFavorite()

AddToFavorite(rawProps): Element

Defined in: components/AddToFavorite.tsx:50

Favorite toggle button for a product or cluster: opens a modal to add the item to one of the user's favorite lists or remove it from lists it belongs to. Renders nothing when no user is present.

Parameters

rawProps

AddToFavoriteProps

Returns

Element

Remarks

Uses useFavorites for favorite-list operations.