front-hub/src/components/Button.tsx

20 lines
493 B
TypeScript
Raw Normal View History

2022-11-17 20:56:17 +00:00
import { Button as DefaultButton, styled } from "@mui/material";
import { ButtonProps } from "@mui/material/Button";
2022-11-17 12:25:23 +00:00
interface Props {
backgroundColor?: string;
2022-11-17 20:56:17 +00:00
textColor?: string;
2022-11-17 12:25:23 +00:00
}
2022-11-17 20:56:17 +00:00
export default styled(DefaultButton)<ButtonProps & Props>(props => ({
paddingLeft: "41.5px",
paddingRight: "41.5px",
paddingTop: "9px",
paddingBottom: "9px",
borderRadius: "8px",
backgroundColor: props.backgroundColor,
color: props.textColor,
boxShadow: "none",
}));