import _extends from "@babel/runtime/helpers/esm/extends";
import React, { memo } from 'react';
import Button from './button';
// import { useTheme } from '@helpdice/theme';
// import { ButtonTypes } from 'components/button-group';

// type CompactButtonProps = {
//     children?: React.ReactNode;
//     iconRight?: React.ReactNode;
//     to: string;
//     icon?: React.ReactNode;
//     scale?: number;
//     type?: any;
//     style?: CSSProperties;
//     target?: string;
//     color?: ButtonTypes;
//     onClick?: () => void
// };

var CompactButton = function CompactButton(props) {
  // const theme = useTheme();
  return /*#__PURE__*/React.createElement(Button, _extends({
    scale: 2 / 3,
    px: 0.6
  }, _extends({
    auto: true
  }, props)), props.children);
};
export default /*#__PURE__*/memo(CompactButton);