import React from "react";
import { Button } from "@mui/material";
import { Refresh } from "@mui/icons-material";
import { Grid } from "../../../../../components/grid/Grid";

export const UpdateFromExternalButton = ({ onUpdate, disabled }) => {
  return (
    <Grid container xs={12} justifyContent="flex-end">
      <Button
        onClick={onUpdate}
        disabled={disabled}
        color="primary"
        size="small"
      >
        بروزرسانی از سامانه واحد <Refresh />
      </Button>
    </Grid>
  );
};
