You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
516 B
27 lines
516 B
3 years ago
|
import { Button, ButtonProps, styled } from '@mui/material';
|
||
|
|
||
3 years ago
|
import { BLACK, GREY, TEXT } from '../lib/consts/DEFAULT_THEME';
|
||
3 years ago
|
|
||
|
const StyledButton = styled(Button)({
|
||
|
backgroundColor: TEXT,
|
||
|
color: BLACK,
|
||
|
textTransform: 'none',
|
||
|
|
||
|
'&:hover': {
|
||
|
backgroundColor: GREY,
|
||
|
},
|
||
|
});
|
||
|
|
||
3 years ago
|
const ContainedButton = ({
|
||
3 years ago
|
children,
|
||
|
onClick,
|
||
3 years ago
|
sx,
|
||
3 years ago
|
type,
|
||
|
}: ButtonProps): JSX.Element => (
|
||
3 years ago
|
<StyledButton {...{ onClick, sx, type }} variant="contained">
|
||
3 years ago
|
{children}
|
||
|
</StyledButton>
|
||
|
);
|
||
|
|
||
3 years ago
|
export default ContainedButton;
|