"use strict";

import React from 'react';
import { IconButton } from './StyledComponents';
import { DownloadIcon } from '../../assets/icons';
import { useSelector } from 'react-redux';
import { jsx as _jsx } from "react/jsx-runtime";
const ActionButton = ({
  icon,
  ...props
}) => {
  const config = useSelector(state => state.chatSettingStore.config);
  return /*#__PURE__*/_jsx(IconButton, {
    style: {
      height: 40,
      width: 40,
      borderRadius: 8,
      backgroundColor: '#fff',
      border: `1px solid ${config?.colors?.primary || '#0052CD'}`,
      ...props.style
    },
    ...props,
    children: icon ? (/*#__PURE__*/React.cloneElement(icon, {
      style: {
        width: 40,
        height: 40
      }
    })) : /*#__PURE__*/_jsx(DownloadIcon, {
      style: {
        width: 40,
        height: 40
      }
    })
  });
};
export { ActionButton };
//# sourceMappingURL=ActionButton.js.map