blob: 12333690691944f01dbd74b35cb2af8337786772 [file] [log] [blame]
import { IconButton } from "@mui/material";
import { styled } from "@mui/styles";
import { CameraIcon, CancelIcon, FolderIcon, PenIcon } from "./svgIcons";
const CustomisePictureButton = styled(
({Icon, ...props}) => (
<IconButton {...props} disableRipple={true}>
<Icon fontSize="inherit"/>
</IconButton>
)
)(({theme}) => ({
border: `1px solid ${theme.palette.primary.dark}`,
color: theme.palette.primary.dark,
height: "53px",
width: "53px",
fontSize: "15px",
"&:hover": {
background: theme.palette.primary.light,
},
"&:active": {
color: "#FFF",
background: theme.palette.primary.dark,
},
}));
export const RemovePictureButton = (props) => {
return (
<CustomisePictureButton {...props}
aria-label="remove picture"
Icon={CancelIcon}
/>
)
}
export const EditPictureButton = (props) => {
return (
<CustomisePictureButton {...props}
aria-label="edit picture"
Icon={PenIcon}
/>
)
}
export const UploadPictureButton = (props) => {
return (
<CustomisePictureButton {...props}
aria-label="upload picture"
Icon={FolderIcon}
/>
)
}
export const TakePictureButton = (props) => {
return (
<CustomisePictureButton {...props}
aria-label="take picture"
Icon={CameraIcon}
/>
)
}