feat: edit button

This commit is contained in:
karishmas6
2024-06-15 21:01:41 +05:30
parent 33f37f35bc
commit 2419df9bdc

View File

@@ -0,0 +1,17 @@
import { IconButton } from "@mui/material";
import { Edit } from "@mui/icons-material";
import React, { FC } from "react";
interface EditButtonProps {
handleClick: () => void;
size?: "small" | "medium" | "large";
}
export const EditButton: FC<EditButtonProps> = ({ handleClick, size }) => {
return (
<IconButton aria-label="add" size={size || "small"} onClick={handleClick}
sx={{ color: 'inherit', '&:hover': { color: '#1976d2', backgroundColor: 'transparent' }}}>
<Edit/>
</IconButton>
);
};