@teamsparta/stack-custom-modal
Version:
stack custom modal
22 lines (18 loc) • 633 B
JavaScript
"use client";
import {
__objRest,
__spreadProps,
__spreadValues
} from "./chunk-FUJQIYOF.mjs";
// src/compounds/CustomModalClose.tsx
import * as Dialog from "@radix-ui/react-dialog";
import { forwardRef } from "react";
import { jsx } from "@emotion/react/jsx-runtime";
var CustomModalClose = forwardRef((_a, ref) => {
var _b = _a, { asChild = true, children } = _b, restProps = __objRest(_b, ["asChild", "children"]);
return /* @__PURE__ */ jsx(Dialog.Close, __spreadProps(__spreadValues({ ref, asChild }, restProps), { children }));
});
CustomModalClose.displayName = "CustomModalClose";
export {
CustomModalClose
};