import React from "react"; export const SmallDots = () => { return ( <div className=" flex w-full flex-col items-center justify-center"> <svg className="w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" > <path fill="#FFFFFF" d="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z" /> </svg> </div> ); }; import { Fragment } from "react"; import { Menu, Transition } from "@headlessui/react"; import classNames from "../../../utils/helpers/className"; // function classNames(...classes) { // return classes.filter(Boolean).join(' ') // } export const SmallMore = () => { return ( <div className="border-b border-gray-200 pb-5"> <div className="sm:flex sm:items-baseline sm:justify-between"> <div className="sm:w-0 sm:flex-1"> <h1 id="message-heading" className="text-lg font-medium text-gray-900" > Full-Stack Developer </h1> <p className="mt-1 truncate text-sm text-gray-500"> Checkout and Payments Team </p> </div> <div className=" flex items-center justify-between sm:mt-0 sm:ml-6 sm:flex-shrink-0 sm:justify-start"> <span className="inline-flex items-center rounded-full bg-green-100 px-3 py-0.5 text-sm font-medium text-green-800"> Open </span> <Menu as="div" className="relative ml-3 inline-block text-left"> <div> <Menu.Button className="-my-2 flex items-center rounded-full bg-white p-2 text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-indigo-500"> <span className="sr-only">Open options</span> <div className="h-5 w-5" aria-hidden={"true"}> <SmallDots /> </div> </Menu.Button> </div> <Transition as={Fragment} enter="transition ease-out duration-100" enterFrom="transform opacity-0 scale-95" enterTo="transform opacity-100 scale-100" leave="transition ease-in duration-75" leaveFrom="transform opacity-100 scale-100" leaveTo="transform opacity-0 scale-95" > <Menu.Items className="absolute right-0 mt-2 w-56 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"> <div className="py-1"> <Menu.Item> {({ active }) => ( <a href="#" className={classNames( active ? "bg-gray-100 text-gray-900" : "text-gray-700", "flex justify-between px-4 py-2 text-sm" )} > <span>Edit</span> </a> )} </Menu.Item> <Menu.Item> {({ active }) => ( <a href="#" className={classNames( active ? "bg-gray-100 text-gray-900" : "text-gray-700", "flex justify-between px-4 py-2 text-sm" )} > <span>Duplicate</span> </a> )} </Menu.Item> <Menu.Item> {({ active }) => ( <button type="button" className={classNames( active ? "bg-gray-100 text-gray-900" : "text-gray-700", "flex w-full justify-between px-4 py-2 text-sm" )} > <span>Archive</span> </button> )} </Menu.Item> </div> </Menu.Items> </Transition> </Menu> </div> </div> </div> ); };