import React, { FC } from 'react' import { Module } from '@agility/nextjs' import { Heart } from '@components/icons' import { Layout } from '@components/common' import { Text, Container } from '@components/ui' import { useCustomer } from '@framework/customer' import { WishlistCard } from '@components/wishlist' import useWishlist from '@framework/wishlist/use-wishlist' interface Fields { heading: string, emptyMessage: string, addItemsMessage?: string } const Wishlist: Module = ({ module: { fields } }) => { const { data: customer } = useCustomer() // @ts-ignore Shopify - Fix this types const { data, isLoading, isEmpty } = useWishlist({ includeProducts: true }) return (
My Wishlist
{isLoading || isEmpty ? (

Your wishlist is empty

Biscuit oat cake wafer icing ice cream tiramisu pudding cupcake.

) : ( data && // @ts-ignore Shopify - Fix this types data.items?.map((item) => ( )) )}
) } export default Wishlist