import {Box} from "@mui/material";
import DeleteForm from "./Form/DeleteForm"
import UpdateForm from "./Form/UpdateForm"

const TableRowActions = ({row, mutate, fetchUrl}) => {

    return (
        <Box sx={{display: "flex", flexWrap: "nowrap", gap: "8px"}}>
            <UpdateForm
                row={row}
                mutate={mutate}
                fetchUrl={fetchUrl}
            />
            <DeleteForm
                rowId={row.getValue("id")}
                fetchUrl={fetchUrl}
                mutate={mutate}
            />
        </Box>
    );
};

export default TableRowActions;
