import {Button, DialogActions, DialogContent,} from "@mui/material"
import {useTranslations} from "next-intl";
import {useFormik} from "formik";
import TableContent from "@/components/dashboard/loan-history/Form/HistoryForm/TableContent";

const HistoryContent = ({mutate, setOpenConfirmDialog, rowId}) => {
    const t = useTranslations();

    const formik = useFormik({});

    return (
        <>
            <DialogContent>
                <TableContent rowId={rowId}/>
            </DialogContent>
            <DialogActions>
                <Button onClick={() => setOpenConfirmDialog(false)} variant="outlined" color="secondary"
                        disabled={formik.isSubmitting} autoFocus>
                    {t("ConfirmDialog.button-cancel")}
                </Button>
            </DialogActions>
        </>
    )

}
export default HistoryContent