12 lines
336 B
JavaScript
12 lines
336 B
JavaScript
import { Box } from "@mui/material";
|
|
import EditForm from "./EditForm";
|
|
|
|
const RowActions = ({ row, mutate }) => {
|
|
return (
|
|
<Box sx={{ display: "flex", gap: 1 }}>
|
|
{row.original.status === 2 && <EditForm rowId={row.getValue("id")} row={row} mutate={mutate} />}
|
|
</Box>
|
|
);
|
|
};
|
|
export default RowActions;
|