"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.IconButton = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const Button_1 = require("../Button");
const forwardRefWithGeneric_1 = require("../forwardRefWithGeneric");
const styles_1 = require("./styles");
const UnwrappedIconButton = (props, ref) => {
    const { variant = Button_1.ButtonVariants.Contained, children, ...restProps } = props;
    return ((0, jsx_runtime_1.jsx)(styles_1.StyledButton, { variant: variant, ...restProps, ref: ref, children: children }));
};
exports.IconButton = (0, forwardRefWithGeneric_1.forwardRefWithGeneric)(UnwrappedIconButton);
