import { type RouterOutputs } from "~/utils/api"; import { Menu, Popover, Transition } from "@headlessui/react"; import { Fragment, useState } from "react"; import { DotsHorizontalIcon, DownloadIcon, Pencil1Icon, TrashIcon, } from "@radix-ui/react-icons"; interface Props { video: RouterOutputs["video"]["get"]; } export default function VideoMoreMenu({ video }: Props) { const [open, setOpen] = useState(null); const items = [ { name: "Rename", icon: , }, { name: "Download", icon: , }, { name: "Delete", icon: , props: { onClick: () => console.log("test") }, }, ]; return (
{items.map((item) => (
{({ active }) => (
{item.icon}

{item.name}

)}
))}
); }