import { DotsMenuButton, MenuIconButtonProps } from "../../../components/dots-menu-button";
import { NostrEvent } from "../../../types/nostr-event";
import OpenInAppMenuItem from "../../../components/common-menu-items/open-in-app";
import CopyEmbedCodeMenuItem from "../../../components/common-menu-items/copy-embed-code";
import DebugEventMenuItem from "../../../components/debug-modal/debug-event-menu-item";

export default function ChannelMenu({
  channel,
  ...props
}: Omit<MenuIconButtonProps, "children"> & { channel: NostrEvent }) {
  return (
    <>
      <DotsMenuButton {...props}>
        <OpenInAppMenuItem event={channel} />
        <CopyEmbedCodeMenuItem event={channel} />
        <DebugEventMenuItem event={channel} />
      </DotsMenuButton>
    </>
  );
}
