front-hub/src/components/Button.tsx
2022-11-17 23:56:17 +03:00

20 lines
493 B
TypeScript

import { Button as DefaultButton, styled } from "@mui/material";
import { ButtonProps } from "@mui/material/Button";
interface Props {
backgroundColor?: string;
textColor?: string;
}
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",
}));