Files
NapCatQQ/.pnpm-store/v3/files/a9/8d4fa3bf3873e5e174c086785e2aa7c17a6096af9cdf4c67d9d714b4c4974a8d67ba56f0647b1a61f04175b4d23b47203449e6b7cdfbe37fe8752f4e519ccf
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

28 lines
741 B
Plaintext

"use client";
import {
DropdownProvider
} from "./chunk-BV7BCS3N.mjs";
import {
useDropdown
} from "./chunk-IURKDIR4.mjs";
// src/dropdown.tsx
import React from "react";
import { Popover } from "@heroui/popover";
import { jsx, jsxs } from "react/jsx-runtime";
var Dropdown = (props) => {
const { children, ...otherProps } = props;
const context = useDropdown(otherProps);
const [menuTrigger, menu] = React.Children.toArray(children);
return /* @__PURE__ */ jsx(DropdownProvider, { value: context, children: /* @__PURE__ */ jsxs(Popover, { ...context.getPopoverProps(), children: [
menuTrigger,
menu
] }) });
};
Dropdown.displayName = "HeroUI.Dropdown";
var dropdown_default = Dropdown;
export {
dropdown_default
};