import React, { forwardRef } from "react";
import { useForwardedRef } from "@bedrock-layout/use-forwarded-ref";
import { useRipple } from "../../../utils/useRipple.js";
import { StyledButton, StyledDot } from "./Button.styled.js";
const PadButton = forwardRef((props, ref) => {
    const innerRef = useForwardedRef(ref);
    const ripple = useRipple({ ref: innerRef, fromCenter: true });
    return (React.createElement(StyledButton, { ...props, ref: innerRef, onPointerDown: ripple.onPointerDown, onKeyDown: ripple.onKeyDown },
        React.createElement(StyledDot, null),
        ripple.ripples));
});
PadButton.displayName = "PadButton";
PadButton.toString = () => StyledButton.toString();
const PadButtonDotSelector = StyledDot.toString();
export { PadButton, PadButtonDotSelector };
//# sourceMappingURL=Button.js.map