@rainbow-me/rainbowkit
Version:
The best way to connect a wallet
51 lines (48 loc) • 1.14 kB
JavaScript
"use client";
import {
InfoIcon
} from "./chunk-HOA4CXQJ.js";
import {
touchableStyles
} from "./chunk-2W63IDAD.js";
import {
isMobile
} from "./chunk-N6EWR2LO.js";
import {
Box
} from "./chunk-ZKEPQLOV.js";
// src/components/InfoButton/InfoButton.tsx
import React from "react";
var InfoButton = ({
"aria-label": ariaLabel = "Info",
onClick
}) => {
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,
style: { willChange: "transform" },
transition: "default",
type: "button",
width: mobile ? "30" : "28"
},
/* @__PURE__ */ React.createElement(InfoIcon, null)
);
};
export {
InfoButton
};