diff --git a/app/components/AddToListDialog.tsx b/app/components/AddToListDialog.tsx new file mode 100644 index 0000000..f676936 --- /dev/null +++ b/app/components/AddToListDialog.tsx @@ -0,0 +1,67 @@ +'use client' + +import { useEffect, useState } from 'react' +import { Dialog, DialogBackdrop, DialogPanel, DialogTitle } from '@headlessui/react' + +interface IProps { + handleClose: () => void + isOpen: boolean +} + +export default function AddToListDialog(props: IProps) { + + const handleSave = () => { + props.handleClose() + } + + return ( + + + +
+
+ +
+
+
+ Add to list + {/* @TODO iterate lists here */} +
+
    +
  • + +
  • +
  • + +
  • +
+
+ +
+
+
+
+ +
+
+
+
+
+ ) +} diff --git a/app/components/AddToListDropdown.tsx b/app/components/AddToListDropdown.tsx new file mode 100644 index 0000000..53f5680 --- /dev/null +++ b/app/components/AddToListDropdown.tsx @@ -0,0 +1,34 @@ +import { Menu, MenuButton, MenuItem, MenuItems } from '@headlessui/react' +import { ArrowTopRightOnSquareIcon, BookmarkIcon, PlusIcon } from '@heroicons/react/24/outline' + +export default function AddToListDropdown() { + + return ( + + +
+ +
+
+ + + + + + + + + +
+ ) +} diff --git a/app/components/PanelContent.tsx b/app/components/PanelContent.tsx index 851c484..5770bc7 100644 --- a/app/components/PanelContent.tsx +++ b/app/components/PanelContent.tsx @@ -1,9 +1,12 @@ 'use client' -import { ArrowTopRightOnSquareIcon } from '@heroicons/react/24/outline' +import { useState } from 'react' +import { ArrowTopRightOnSquareIcon, BookmarkIcon, PlusIcon } from '@heroicons/react/24/outline' import { TShop } from '@/types/shop-types' import { TNeighborhood } from '@/types/neighborhood-types' import NearbyShops from './NearbyShops' +import AddToListDialog from './AddToListDialog' +import AddToListDropdown from './AddToListDropdown' interface IProps { handleNearbyShopClick: (shop: TShop) => void @@ -12,6 +15,7 @@ interface IProps { // @TODO PanelBody might be a better name? export default function PanelContent(props: IProps) { + const [addToListDialogIsOpen, setAddToListDialogIsOpen] = useState(false) return ( <>
@@ -26,11 +30,14 @@ export default function PanelContent(props: IProps) { )}
{props.shop.properties.address}
-

- {props.shop.properties.neighborhood} -

+

{props.shop.properties.neighborhood}

+
+ +
+ + {/* setAddToListDialogIsOpen(false)} /> */} ) }