import * as React from 'react' ; import { ICustomIconProps } from './CustomIcon.props' ; import { useStyles } from './CustomIcon.styles' ; import { IconButton } from '../../IconButton' ; export { ICustomIconProps } from './CustomIcon.props' ; export const CustomIcon = ( props ) => { const { icon , onIconPress , ... otherProps } = props ; const { root } = useStyles ( { onIconPress } ) ; return ( < IconButton className = { root } disableRipple onClick = { onIconPress } { ... otherProps } > { icon } < /IconButton>); } ; export default CustomIcon ;