import e from"prop-types";import{Tooltip as r,IconButton as a}from"@material-ui/core";import{Check as i}from"@material-ui/icons";import{useStyles as o}from"../sharedStyles.js";import{jsx as t}from"react/jsx-runtime";function l(e){var l=e.handleSave,s=e.disabled,d=o();return t(r,{title:s?"":"Save Changes",children:t(a,{className:d.actionButton,onClick:l,disabled:s,children:t(i,{className:d.actionIcon,color:s?"disabled":"primary"})})})}l.propTypes={handleSave:e.func.isRequired,disabled:e.bool},l.defaultProps={disabled:!1};export{l as SaveButton};
