feat: move buttons to ui directory

This commit is contained in:
amhsirak
2025-01-09 19:46:31 +05:30
parent 6b79c3a6c0
commit 5af1cd4c26
14 changed files with 13 additions and 13 deletions

View File

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