import * as React from 'react';
import { Menu, Transition } from '@headlessui/react';
export { Menu };
export const MenuBtn = Menu.Button,
  MenuPanel = Menu.Items,
  MenuItem = Menu.Item;

// export { Menu, MenuBtn: Menu.Button, MenuPanel: Menu.Button, MenuItem: Menu.Button };

// export default function MenuBtn() {
//   return (
//     <div className="flex items-center justify-center p-12">
//       <div className="relative inline-block text-left">
//         <Menu>
//           {({ open }) => (
//             <>
//               <span className="rounded-md shadow-sm">
//                 <Menu.Button className="inline-flex justify-center w-full px-4 py-2 text-sm font-medium leading-5 text-gray-700 transition duration-150 ease-in-out bg-white border border-gray-300 rounded-md hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-50 active:text-gray-800">
//                   <span>Options</span>
//                   <svg className="w-5 h-5 ml-2 -mr-1" viewBox="0 0 20 20" fill="currentColor">
//                     <path
//                       fillRule="evenodd"
//                       d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
//                       clipRule="evenodd"
//                     />
//                   </svg>
//                 </Menu.Button>
//               </span>

//               <Transition
//                 show={open}
//                 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
//                   static
//                   className="absolute right-0 w-56 mt-2 origin-top-right bg-white border border-gray-200 divide-y divide-gray-100 rounded-md shadow-lg outline-none"
//                 >
//                   <div className="px-4 py-3">
//                     <p className="text-sm leading-5">Signed in as</p>
//                     <p className="text-sm font-medium leading-5 text-gray-900 truncate">tom@example.com</p>
//                   </div>

//                   <div className="py-1">
//                     <Menu.Item>
//                       {({ active }) => (
//                         <a
//                           href="#account-settings"
//                           className={`${
//                             active ? 'bg-gray-100 text-gray-900' : 'text-gray-700'
//                           } flex justify-between w-full px-4 py-2 text-sm leading-5 text-left`}
//                         >
//                           Account settings
//                         </a>
//                       )}
//                     </Menu.Item>
//                     <Menu.Item>
//                       {({ active }) => (
//                         <a
//                           href="#support"
//                           className={`${
//                             active ? 'bg-gray-100 text-gray-900' : 'text-gray-700'
//                           } flex justify-between w-full px-4 py-2 text-sm leading-5 text-left`}
//                         >
//                           Support
//                         </a>
//                       )}
//                     </Menu.Item>
//                     <Menu.Item
//                       as="span"
//                       disabled
//                       className="flex justify-between w-full px-4 py-2 text-sm leading-5 text-left text-gray-700 cursor-not-allowed opacity-50"
//                     >
//                       New feature (soon)
//                     </Menu.Item>
//                     <Menu.Item>
//                       {({ active }) => (
//                         <a
//                           href="#license"
//                           className={`${
//                             active ? 'bg-gray-100 text-gray-900' : 'text-gray-700'
//                           } flex justify-between w-full px-4 py-2 text-sm leading-5 text-left`}
//                         >
//                           License
//                         </a>
//                       )}
//                     </Menu.Item>
//                   </div>

//                   <div className="py-1">
//                     <Menu.Item>
//                       {({ active }) => (
//                         <a
//                           href="#sign-out"
//                           className={`${
//                             active ? 'bg-gray-100 text-gray-900' : 'text-gray-700'
//                           } flex justify-between w-full px-4 py-2 text-sm leading-5 text-left`}
//                         >
//                           Sign out
//                         </a>
//                       )}
//                     </Menu.Item>
//                   </div>
//                 </Menu.Items>
//               </Transition>
//             </>
//           )}
//         </Menu>
//       </div>
//     </div>
//   );
// }
