Currently, <ImageHeader /> sets its background by taking in a className prop with a Tailwind class like bg-[url('https://foo.bar')] but we want this to be dynamic. For some reason, Tailwind doesn't read dynamically passed URLs like bg-[url(${someUrlVariable})].
Currently,
<ImageHeader />
sets its background by taking in aclassName
prop with a Tailwind class likebg-[url('https://foo.bar')]
but we want this to be dynamic. For some reason, Tailwind doesn't read dynamically passed URLs likebg-[url(${someUrlVariable})]
.