/**
 * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.
 */
import React from 'react';
import {IconButton} from './style';

import refreshIcon from 'assets/images/icon/refresh.svg';

interface IRefreshButton {
  onClick: () => void;
  disabled?: boolean;
}

export const RefreshButton = ({onClick, disabled = false}: IRefreshButton): React.JSX.Element => (
  <IconButton onClick={onClick} disabled={disabled}>
    <img src={refreshIcon} alt={'Refresh'} />
  </IconButton>
);
