I am trying to use an image as an "li" bullet point. What I am trying tis to import the image as a "StaticImage" to use it in Styled Components, like this:
import { StaticImage } from "gatsby-plugin-image";
export function Bullet() {
return <StaticImage src="../images/bullet.png" alt="li bullet" />;
}
Then I'm trying several different solutions to add it as a bullepoint, for example, as a pseudo element:
li {
&:before {
content: ${Bullet}
}
}
But I always get [Object object]. Is there any way of doing this?