feat: Create Blank svg as placeholder while ThemeSwitch mounts

This commit is contained in:
Trillium Smith 2024-06-19 13:07:13 -07:00
parent 391f4c679b
commit 1101b2c266

View File

@ -44,6 +44,7 @@ const Monitor = () => (
<line x1="10" y1="13" x2="10" y2="17"></line>
</svg>
)
const Blank = () => <svg className="h-6 w-6" />
const ThemeSwitch = () => {
const [mounted, setMounted] = useState(false)