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

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

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

export default TableRowActions;
