import hexToRgba from 'hex-to-rgba' ; import { createStyles , makeStyles } from '@material-ui/core/styles' ; import { IThemeWeb } from '../../../Themes' ; const rgbAlpha = 0.16 ; export const style = ( theme ) => { const styles = { selected : { } } ; if ( theme . palette && theme . palette . primary && theme . palette . primary . main ) { todo styles . selected = { backgroundColor : `${ hexToRgba ( theme . palette . primary . main , rgbAlpha ) } !important` } ; } return createStyles ( styles ) ; } ; export const useStyles = makeStyles ( style ) ; export default useStyles ;