import React, { FC } from 'react' import useWishlist from '@framework/wishlist/use-wishlist' import { Heart } from '@components/icons' import { Text, Container } from '@components/ui' import { WishlistCard } from '@components/wishlist' import { Module } from '@agility/nextjs' interface Fields { heading: string, emptyMessage: string, addItemsMessage?: string } const Wishlist: Module = ({ module: { fields } }) => { const { data, isEmpty } = useWishlist({ includeProducts: true }) return (
{fields.heading}
{isEmpty ? (

{fields.emptyMessage}

{fields.addItemsMessage}

) : ( data && data.items?.map((item) => ( )) )}
) } export default Wishlist