import {useTranslations} from "next-intl";
import {IconButton, Tooltip} from "@mui/material";
import ChangeCircleIcon from '@mui/icons-material/ChangeCircle';


const Update = ({rowId, fetchUrl, mutate}) => {
    const t = useTranslations();

    return (
        <>
            <Tooltip title={t("UpdateDialog.update-tooltip")}>
                <IconButton
                    color="primary"
                    onClick={() => {
                        setOpenConfirmDialog(true)
                    }}
                >
                    <ChangeCircleIcon/>
                </IconButton>
            </Tooltip>
        </>
    );
};
export default Update;