diff --git a/src/app/(client-components)/(Header)/NotifyDropdown.tsx b/src/app/(client-components)/(Header)/NotifyDropdown.tsx new file mode 100644 index 0000000..55ae010 --- /dev/null +++ b/src/app/(client-components)/(Header)/NotifyDropdown.tsx @@ -0,0 +1,101 @@ +"use client"; + +import { Popover, Transition } from "@headlessui/react"; +import { FC, Fragment } from "react"; +import Avatar from "@/shared/Avatar"; +import { BellIcon } from "@heroicons/react/24/outline"; +import avatar4 from "@/images/avatars/Image-4.png"; +import avatar5 from "@/images/avatars/Image-5.png"; +import avatar6 from "@/images/avatars/Image-6.png"; + +const notifications = [ + { + name: "Eden Tuan", + description: "Measure actions your users take", + time: "3 minutes ago", + href: "##", + avatar: avatar4, + }, + { + name: "Leo Messi", + description: "Create your own targeted content", + time: "1 minute ago", + href: "##", + avatar: avatar5, + }, + { + name: "Leo Kante", + description: "Keep track of your growth", + time: "3 minutes ago", + href: "##", + avatar: avatar6, + }, +]; + +interface Props { + className?: string; +} + +const NotifyDropdown: FC = ({ className = "" }) => { + return ( + <> + + {({ open }) => ( + <> + + + + + + +
+
+

Notifications

+ {notifications.map((item, index) => ( + + +
+

+ {item.name} +

+

+ {item.description} +

+

+ {item.time} +

+
+ +
+ ))} +
+
+
+
+ + )} +
+ + ); +}; + +export default NotifyDropdown;