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

26 lines
875 B
Plaintext

"use client";
import {
useModal
} from "./chunk-Z2LRST4N.mjs";
import {
ModalProvider
} from "./chunk-UX6VCJJD.mjs";
// src/modal.tsx
import { AnimatePresence } from "framer-motion";
import { Overlay } from "@react-aria/overlays";
import { forwardRef } from "@heroui/system";
import { jsx } from "react/jsx-runtime";
var Modal = forwardRef((props, ref) => {
const { children, ...otherProps } = props;
const context = useModal({ ...otherProps, ref });
const overlay = /* @__PURE__ */ jsx(Overlay, { portalContainer: context.portalContainer, children });
return /* @__PURE__ */ jsx(ModalProvider, { value: context, children: context.disableAnimation && context.isOpen ? overlay : /* @__PURE__ */ jsx(AnimatePresence, { children: context.isOpen ? overlay : null }) });
});
Modal.displayName = "HeroUI.Modal";
var modal_default = Modal;
export {
modal_default
};