I have many pages, and the home page, if i am in the homepage, i want to make the bg transparent, if the shrink menu is true make it solid (bg-[color:rgb(var(--color-header-bg))]), if i am in other pages make the bg bg-[color:rgb(var(--color-header-bg))] no matter what
<div
className={clsx(
shrinkMenu ? 'lg:min-h-header-sm' : 'lg:min-h-header-lg',
isHome
? 'border-white/40 bg-transparent'
: 'border-dark/20 bg-[color:rgb(var(--color-header-bg))]',
isHome && shrinkMenu
? 'bg-[color:rgb(var(--color-header-bg))]'
: 'bg-transparent',
)}
>
The issue is in homepage, bg-transparent persists even shrinkmenu is true, how can I improve this code?