I was hoping to incorporate some conditional logic within my MUI styles
Currently, I am using inline styles which are functional
<div className={classes.form} style={{alignItems: ((Code.length>10 || Description.length>100) ? 'start' : 'center')}}>
...
</div>
However, I wish to achieve the same outcome using MUI styles, but encounter an error
// Code and Description state
...
const useStyles = makeStyles(theme => ({
form: {
alignItems: {(Code.length>10 || Description.length>100) ? 'start' : 'center'}, //Code not defined
}