I want to build a website that has dark mode. I am using App router.
I realize that I cant use hook in server component.
so how can I change icon color when the mode is set to dark?
In my page.tsx I import fontawesome icon
<FontAwesomeIcon icon={faBars} style={{ color: "#487edb" }} />
And since it is server component, I can't use useTheme to know which mode it is in.
Any idea?