import { Fragment, ReactNode } from "react"; import { Popover, Transition } from "@headlessui/react"; import { useTranslation } from "react-i18next"; import ShareIcon from "../icons/ShareIcon"; import { Button } from "../button"; interface Props { className?: string; disabled?: boolean; children: ReactNode; } export default function ButtonFlyout({ className, disabled, children }: Props) { const { t } = useTranslation(); return ( {({ open }) => ( <> {t("shared.share")}
{children}
)}
); }