26 lines
817 B
TypeScript
26 lines
817 B
TypeScript
import MuiButton, { ButtonProps } from '@mui/material/Button';
|
|
|
|
export const Button = (props: ButtonProps) => {
|
|
return <MuiButton {...props} />;
|
|
};
|
|
|
|
export const IconButton = (props: ButtonProps) => {
|
|
const { variant = 'contained', color = 'primary', sx, children, ...rest } = props;
|
|
return (
|
|
<MuiButton variant={variant} color={color} {...rest} sx={{ color: 'white', minWidth: '32px', padding: '8px', ...sx }}>
|
|
{children}
|
|
</MuiButton>
|
|
);
|
|
};
|
|
|
|
export const IconButtonItem = (props: ButtonProps) => {
|
|
const { variant = 'contained', size = 'small', color = 'primary', sx, children, ...rest } = props;
|
|
return (
|
|
<MuiButton {...props} >
|
|
{/* <MuiButton variant={'contained'} size={size} color={color} {...rest} sx={{ color: 'white', ...sx }}> */}
|
|
|
|
{children}
|
|
</MuiButton>
|
|
);
|
|
};
|