@rainbow-me/rainbowkit
Version:
The best way to connect a wallet
51 lines (48 loc) • 1.16 kB
JavaScript
"use client";
import {
CloseIcon
} from "./chunk-MBNO5VRF.js";
import {
touchableStyles
} from "./chunk-2W63IDAD.js";
import {
isMobile
} from "./chunk-N6EWR2LO.js";
import {
Box
} from "./chunk-ZKEPQLOV.js";
// src/components/CloseButton/CloseButton.tsx
import React from "react";
var CloseButton = ({
"aria-label": ariaLabel = "Close",
onClose
}) => {
const mobile = isMobile();
return /* @__PURE__ */ React.createElement(
Box,
{
alignItems: "center",
"aria-label": ariaLabel,
as: "button",
background: "closeButtonBackground",
borderColor: "actionButtonBorder",
borderRadius: "full",
borderStyle: "solid",
borderWidth: mobile ? "0" : "1",
className: touchableStyles({ active: "shrinkSm", hover: "growLg" }),
color: "closeButton",
display: "flex",
height: mobile ? "30" : "28",
justifyContent: "center",
onClick: onClose,
style: { willChange: "transform" },
transition: "default",
type: "button",
width: mobile ? "30" : "28"
},
/* @__PURE__ */ React.createElement(CloseIcon, null)
);
};
export {
CloseButton
};